One another topics is how to encode and stored info in computer. if you can understand it clearly, you can use programing language for write files with any format.
This topic is focus two thing:
– Help you easy understanding the text encoding and file encoding
– Support you one Tool, Software for check file encoding
Let’s see how to window work => below pictures is generator from binary number to Hex data. After that using basic encoding to translate for users purpose.
Understand how Unicode works:
To understand how Unicode works, you need to first understand how encoding works. Any text file containing data that you open and edit in Window is displayed using encoding. In the simplest terms, encoding is how the raw hex data of a file is interpreted and displayed in the editor as readable text, which you then can manipulate using your keyboard.
Since we know that everything on our computer is composed of 0’s and 1’s, you can visualize how encoding works by looking over the following diagram.
Translate binary code to ASCII
Unicode strives to map most of the world’s written characters to a single encoding set. This allows you to view Chinese scripts, English alphanumeric characters, Russian and Arabic text all within the same file without having to change the encoding (code page) for each specific text.
Prior to Unicode, you would probably have needed to select a different code page (encoding) to see each script, and most of the scripts would not have been viewable at the same time (or at all).
Translate binary code to UNICODE
The list thing: Unicode vs. UTF-8, UTF-16, etc.
Because the hex format of Unicode requires many extra, sometimes unnecessary bytes (hex separator characters), a derivation of Unicode was developed to conserve space and optimize the hex data of Unicode strings (and subsequently file size) called UTF-8 (Unicode Transformation Format in 8-bit format).
UTF-8 is still encompassed by the Unicode character set, but its system of storing characters is different and improved. There are other Unicode encoding such as UTF-16, UTF-32, and UTF-7, but UTF-8 is the most popular and widely-used Unicode format today.
How to check file encoding?
This topic I’ll suggest you The File Encoding Checker with free listen.
We should Thanks to Jeevan James and licensed under the Mozilla public license 1.1
Thank you!
You can download tool from here
Relative topics: (may be you need it)
http://learn-tech-tips.blogspot.com/2015/05/c-programming-convert-tcvn3-to-unicode.html
http://learn-tech-tips.blogspot.com/2015/05/readwritefileinCsharp.html
Any feedback, leave your comment, we can discuss about it!
Thanks a lots!
Zidane