Opened 6 years ago

Last modified 2 years ago

#9669 new bug

Can not change the encoding in RTF.

Reported by: Premislaus Owned by: axeld
Priority: normal Milestone: R1
Component: Add-Ons/Translators/RTF Version: R1/Development
Keywords: Cc:
Blocked By: #9654 Blocking:
Has a Patch: no Platform: All

Description

From #9654

Text files created on Windows have a default CP-1250 encoding. Haiku load by default UTF-8 and causes it display of incorrect character set. With the help of StyleEdit and iconv I can change the encoding.

This works for TXT and SRT. Unfortunately does not work for RTF.

Attachments (3)

RTF_wrong_charset_UTF-8.png (147.4 KB) - added by Premislaus 6 years ago.
RTF_wrong_charset_CP-1250.png (148.3 KB) - added by Premislaus 6 years ago.
after_save_wth_new_encoding_CP-1250.png (7.6 KB) - added by Premislaus 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by Premislaus

Attachment: RTF_wrong_charset_UTF-8.png added

Changed 6 years ago by Premislaus

Changed 6 years ago by Premislaus

comment:1 Changed 6 years ago by Premislaus

Blocked By: 9654 added
Blocking: 9654 removed

comment:2 Changed 6 years ago by Premislaus

iconv -f CP1250 -t UTF-8 < file.rtf > new.rtf - Do not change the encoding.

StyleEdit - After saving file with the new encoding, file is damaged.

Last edited 6 years ago by Premislaus (previous) (diff)

comment:3 Changed 6 years ago by Premislaus

"This works for TXT and SRT." - Changing encoding in SRT partially works in StyleEdit. StyleEdit correctly displays the file, but MediaPlayer not. I need to use iconv. https://dev.haiku-os.org/ticket/9668#comment:1

Last edited 6 years ago by Premislaus (previous) (diff)

comment:4 Changed 2 years ago by axeld

It seems like the RTF translator does not support or take into account any charsets at all. Do you have an RTF file that is problematic that you can share?

Note: See TracTickets for help on using tickets.