Opened 12 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.1 |
Component: | Add-Ons/Translators/RTF | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | #9654 | Blocking: | |
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)
Change History (9)
by , 12 years ago
Attachment: | RTF_wrong_charset_UTF-8.png added |
---|
by , 12 years ago
Attachment: | RTF_wrong_charset_CP-1250.png added |
---|
by , 12 years ago
Attachment: | after_save_wth_new_encoding_CP-1250.png added |
---|
comment:1 by , 12 years ago
Blocked By: | 9654 added |
---|---|
Blocking: | 9654 removed |
comment:3 by , 12 years ago
"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
comment:4 by , 8 years ago
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?
comment:5 by , 4 years ago
Milestone: | R1 → R1.1 |
---|
comment:6 by , 2 years ago
I just looked at the specification, and it seems that RTF is always using 7-bit ASCII, and can only express other characters using a special notation. IOW nothing should really happen when you iconv it. That doesn't change the fact that we ignore those characters currently AFAICT.
StyleEdit - After saving file with the new encoding, file is damaged.