I need some help with some .jsp files (for use in HTML 5).

Apparently we haven't got the coding quite right for editing in Trados Studio. It appears that Studio deleted the UTF-8 tag. Then the target file didn't have the same line breaks even though Studio maintains them. I have screenshots but not sure how to post them. In addition the linefeed with hexadecimal value OA was replaced with Hex code 20. I understand I need to adjust the settings for HTML5 in the file types, writer, but I'm not sure which settings I need. Thanks for your help.

Parents
  • Hello Gillian,

    When you tweeted the question and said coding I thought you were developing a filetype for jsp!  Sorry about that... I moved your post to the Studio community.

    Unknown said:
    It appears that Studio deleted the UTF-8 tag.

    I'm not clear here.  The BOM (I presume this is what you are referring to) is at the start of the file, not midway down the file.  If it's anywhere else then it's interpreted as a "non-breaking space".  Which brings me to the second question:

    Unknown said:
    Then the target file didn't have the same line breaks even though Studio maintains them.

    The default setting on the HTML5 filetype for whitespace is Normalize unless xml:space='preserve'.  You can find these settings under Whitespace in the filetype settings.  This means that as your file doesn't use this attribute then the wihitespaces will be normalized which is what you are showing (including the aforementioned "non-breaking space").  If you wish to keep all the spaces then check the Always preserve option.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Reply
  • Hello Gillian,

    When you tweeted the question and said coding I thought you were developing a filetype for jsp!  Sorry about that... I moved your post to the Studio community.

    Unknown said:
    It appears that Studio deleted the UTF-8 tag.

    I'm not clear here.  The BOM (I presume this is what you are referring to) is at the start of the file, not midway down the file.  If it's anywhere else then it's interpreted as a "non-breaking space".  Which brings me to the second question:

    Unknown said:
    Then the target file didn't have the same line breaks even though Studio maintains them.

    The default setting on the HTML5 filetype for whitespace is Normalize unless xml:space='preserve'.  You can find these settings under Whitespace in the filetype settings.  This means that as your file doesn't use this attribute then the wihitespaces will be normalized which is what you are showing (including the aforementioned "non-breaking space").  If you wish to keep all the spaces then check the Always preserve option.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children