Menu

#17 xhtml parsing bug

closed-fixed
None
6
2004-10-12
2004-09-28
No

Hi all,

as described on Yahoo here is the pb:

I have a properly formatted japanese xhtml files set.

I open them in OmegaT and I don't get a proper display of Japanese
characters although I checked that the file is well in utf-8.

After suspecting the x side of xhtml is the cause I identify the
suspect by isolating non html parts in html comments <!-- suspect
-->

the result is that the xml declaration at the very top of the file (the
very first line) seems to be the cause of the problem:

<?xml version="1.0" encoding="utf-8"?>

as is does not allow proper Japanese display

<!-- <?xml version="1.0" encoding="utf-8"?> --> (the same
declaration, but commented out so that it is not considered for
parsing) allows for proper Japanese display.

I tried to add a .xhtml suffix to the file to "force" xhtml recognition
but OmegaT does not react at all.

JC

Discussion

  • Jean-Christophe Helary

    try it for yourself.

     
  • Maxym Mykhalchuk

    • priority: 5 --> 6
    • assigned_to: nobody --> mihmax
    • status: open --> open-accepted
     
  • Maxym Mykhalchuk

    Logged In: YES
    user_id=488500

    Yes, it it a bug of XML file handler (XHTML is handled by it).
    Currently we're thinking of the better way to fix the issue

     
  • Maxym Mykhalchuk

    • status: open-accepted --> closed-fixed
     

Log in to post a comment.