![]() ![]() So the problem only seems to appear with java. Problem appears on several computers running on different hardware.Īll of the above mentioned characters work fine in all of the above mentioned CLI by default. creating Autorun file in regedit to force UTF-8.Several distros of Linux (Ubuntu, Mint, Kali).CMD Windows 10 64-bit Slovenian languge - Slovenian keyboard layout.CMD Windows 10 64-bit English language - English keyboard.successful -> Works as needed in IDE, but not CLI. Intellij IDEA on Windows 10 64-bit English language - Slovenian keyboard layout.However, the function can be simplified if you create a StreamReader, associated with mbuffer, and specify the UTF-8 encoding in the constructor. CMD, Powershell, Cmder on Windows 10 64-bit English - Slovenian keyboard Before calling mencoding.GetChars, I think that you should firstly determine how many characters is available using mencoding.GetCharCount and then read no more characters.On Linux, the output is UTF-8 and on my Windows (a Chinese simplified version of Windows 10 Pro), the output is cp936, which means that UTF-8 is used as the default encoding on Linux and cp936 is used as the default encoding on Windows 1. (I assume all UTF-8 specific characters, since ć and đ also do not work. The method locale.getpreferredencoding() is used to get the encoding for text files on the system. On an english Windows 10 using slovenian keyboard layout, all command line interfaces seem to have a problem with displaying (printing) UTF-8 characters, namely č, š and ž, which are replaced with ?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |