Hi George, > Please change that setting (Options->Preferences -- Encoding -- Fallback > character encoding) > to the default value UTF-8 and you should be able to open the file as > expected.
Ah! Yes, that fixed it. Thank you! /Roger -----Original Message----- From: oXygen-user <oxygen-user-boun...@oxygenxml.com> On Behalf Of George Bina Sent: Tuesday, June 1, 2021 5:03 PM To: oxygen-user@oxygenxml.com Subject: [EXT] Re: [oXygen-user] Why is Oxygen showing my files in Chinese? Dear Roger, Sorry, I tried to format the URL and accidentally deleted a character from it, the correct link is: https://www.oxygenxml.com/doc/versions/23.1/ug-editor/topics/preferences-encoding.html Unicode encoding is UTF-16 and it expects 2 bytes for each character while Notepad saved the document using UTF-8 or an encoding that encoded each character from "Hello world" as one byte. So, if you use Unicode UTF-16 when reading the file then each pair of two bytes will be decoded as one character and the codes for "Hello world" will result in those unexpected characters - you can also note that there are 6 strange characters instead of 12 as you would expect, this is exactly because URF-16 is using 2 bytes for each character. Please change that setting (Options->Preferences -- Encoding -- Fallback character encoding) to the default value UTF-8 and you should be able to open the file as expected. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 6/1/21 4:04 PM, Roger L Costello wrote: > Hi George, > > * the user can set, Options->Preferences -- Encoding -- "Fallback > character encoding" > > I checked and it is set to Unicode: > > * the corresponding user guide topic: > * > https://www.oxygenxml.com/doc/versions/23.1/ug-editor/topic/preferences-encoding.html > > <https://www.oxygenxml.com/doc/versions/23.1/ug-editor/topic/preferenc > es-encoding.html> > > That link is no longer valid: > > * You may also attach that sample file to a reply > > Thank you George – see attached. > > /Roger > > -----Original Message----- > From: oXygen-user <oxygen-user-boun...@oxygenxml.com> On Behalf Of > George Bina > Sent: Tuesday, June 1, 2021 8:53 AM > To: oxygen-user@oxygenxml.com > Subject: [EXT] Re: [oXygen-user] Why is Oxygen showing my files in Chinese? > > Dear Roger, > > When you open a file in Oxygen the bytes representing that file > content will be translated to characters using a character encoding. > For XML files there is a detection process described by the XML spec. > For other type of files the rule is to always use UTF-8. For generic > text files there is no encoding information available, so Oxygen > provides a default > > (UTF-8) and exposes that as an option that the user can set, see > > Options->Preferences -- Encoding -- "Fallback character encoding" and > > also the corresponding user guide topic: > > https://www.oxygenxml.com/doc/versions/23.1/ug-editor/topic/preference > s-encoding.html > <https://www.oxygenxml.com/doc/versions/23.1/ug-editor/topic/preferenc > es-encoding.html> > > The first thing to do is to check what value you have for this option > in > > your Oxygen installation, to understand what encoding is used to read > > the content of that text file. That should ideally match the encoding > > you used to create the file. > > You may also attach that sample file to a reply, to allow us to better > > understand what content has the file what you want to open. > > Best Regards, > > George > > -- > > George Cristian Bina > > <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger > > http://www.oxygenxml.com <http://www.oxygenxml.com> > > On 6/1/21 3:11 PM, Roger L Costello wrote: > > > Hi Folks, > > > > > > I created a Hello, world text file using Notepad. > > > > > > Then I dragged and dropped the file into Oxygen. > > > > > > Oxygen displays the text in Chinese (I think). See screenshot below. > > > > > > How do I fix this? /Roger > > > > > > > > > _______________________________________________ > > > oXygen-user mailing list > > > oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> > > > https://www.oxygenxml.com/mailman/listinfo/oxygen-user > <https://www.oxygenxml.com/mailman/listinfo/oxygen-user> > > > > > _______________________________________________ > > oXygen-user mailing list > > oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> > > https://www.oxygenxml.com/mailman/listinfo/oxygen-user > <https://www.oxygenxml.com/mailman/listinfo/oxygen-user> > > > _______________________________________________ > oXygen-user mailing list > oXygen-user@oxygenxml.com > https://www.oxygenxml.com/mailman/listinfo/oxygen-user > _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user