UTF-8 also has the advantage that it is easily auto-detectable.
What is utf-8 text file. The most commonly used ones are LF nix CRLF Windows and DOS and CR old pre-OSX Mac systems mostly. Set oFs servercreateobjectScriptingFileSystemObject set oTextFile oFsCreateTextFilepath True oTextFileWriteLine. The encoding is defined by the Unicode Standard and was originally designed by Ken Thompson and Rob Pike.
For a basic check on ASCII non-ASCII normally UTF-8 text files you can use the file command. A UTF-8 encoded file ctemptesttxt with Chinese characters. Select the helloutf-8 text file and select the UTF-8 option in the Encoding field.
0 i 8 2 ai. Run Notepad and click menu File Open. Make sure that you are well familiar with it and that your software supports UTF-8 smoothly.
See the picture below. UTF-16 is used in major operating systems and environments like Microsoft Windows Java and NET. Now the text is now encoded as UTF-16 and you can display it in a field.
But in principle UTF-8 is only one of the possible ways of encoding Unicode characters. Lets try to use Notepad to open the UTF-8 text file helloutf-8 created from the previous chapter first. UTF-8 is backwards compatible with ASCII.
See the picture below. Ive tried a few methods but filetxt remains as. Click the Open button.