To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74002





------- Additional comments from [EMAIL PROTECTED] Fri Feb  2 10:53:14 +0000 
2007 -------
@tora:  I do not know I yet fully understand what your problem is.  Both
hyperlinks in 74002.ods work for me (they at least bring up existing web pages
in the browser, hopefully the right ones).  I assume your problem is that the
second hyperlink, as displayed by OOo, contains a mixture of %xx encodings and
(bogus) interpretations of some of those %xxs as UTF-8 characters (where in fact
they all represent EUC-JP characters).

That is the consequence of how INetURLObject's DECODE_TO_IURI DecodeMechanism
works (see tools/inc/urlobj.hxx:1.36 l. 227--232).  It was assumed that people
would like to see URLs displayed with readable characters rather than %xx
escapes (as with the first hyperlink in 74002.ods), and that most URLs would
encode UTF-8 data (again, as with the first hyperlink in 74002.ods).  To do so,
it uses the heuristic of interpreting any %xx escapes as representing UTF-8 data
that can be so interpreted, and leaving any other %xxs alone.

A fix might be to change DECODE_TO_IURI to not interpret any %xx as UTF-8 data
if at least one contained %xx cannot be interpreted as UTF-8.  For the given
74002.ods, that modified heuristic would cause the first hyperlink to still be
displayed with readable characters rather than %xxs, and the second hyperlinik
to be displayed with only the original %xxs and no bogus UTF-8-interpreted
characters.  Would that suite your needs?

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to