To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108682
                 Issue #|108682
                 Summary|Non-ascii metadata in saved RTF not properly encoded
               Component|Word processor
                 Version|OOo 3.1.1
                Platform|Unknown
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|save-export
             Assigned to|writerneedsconfirm
             Reported by|miroslavlos





------- Additional comments from miroslav...@openoffice.org Tue Jan 26 15:54:59 
+0000 2010 -------
When writer saves a file as RTF, some non-ascii characters in metadata (e.g.
author name) are written literally without hex-escaping, in conflict with the
RTF specification and other software expecting all RTF content to be ascii.

For example, if you (having a new empty writer document):
1. Set first/last name in Tools->Options->User Data to Ján Ľos;
2. Update document metadata using File->Properties->General->Reset (with 'Apply
user data' checked);
3. Save the file as RTF;

you'll end up with this declaration inside the RTF:
{\info{\upr{\author Ján ?os}{\*\ud{\author J\'e1n \u317\'3fos}}} ...

Note that the U+00E1 A WITH ACUTE ACCENT in \upr is encoded as literal byte
0xe1, not as the proper (and later used) escape sequence \'e1, as required for
all characters beyond 7-bit ascii by the RTF specification.

Same issue applies to other (but not all) characters in the codepage used in the
file. 

For another example, using the name Ján Hraško, in locale sk_SK.UTF-8 and all
language settings set to Slovak, results in a file encoded in codepage 1250,
with relevant code:
{\info{\author Ján Hraško} (converted, the bytes are again 0xe1 and 0x9e, above
127 but not escaped).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to