Possible duplicate:Java: how to determine the correct encoding of a stream encoding
The user uploads the CSV file to the server, the server needs to check whether the CSV file is encoded as UTF-8. If it is necessary to inform the user, he uploaded the wrong encoding file. The problem is that how to determine the downloaded file is UTF-8 encoding ? The back end is written in Java. So will anyone get an offer?
, , , - , , - , . , , . , ISO 8859 ( ), ISO 8859 ( "" , , ).
. , , UTF-8 (EF BB BF), , , UTF-8. , , : 110xxxxx 10xxxxxx, , , , UTF-8. , - () UTF-8 enocded, - , 110xxxxx 110xxxxx. (110xxxxx , , UTF-8).
, : http://glaforge.free.fr/wiki/index.php?wiki=GuessEncoding
Well, you can’t. You can show a “preview” (or should I say a review?) With some sample data from a file so the user can check if it looks good. Perhaps with the ability to select various encoding options to help determine the correct one.
Source: https://habr.com/ru/post/1764033/More articles:Сделать TextView оранжевым при фокусировке? - androidHow can I resolve the error "could not find the vapply function" in R? - rPreferred Android developer phone to use ZXing library - androidTwisted Serialport and endangered serial port devices - pythonRegular expression for spaces but not escaped spaces - phpVirtual member functions and std :: tr1 :: function: How does this work? - c ++Исправлено: IList для пользовательского класса, реализующего ICollection - collectionsHow to create a self-regulatory model object for hierarchical data in asp.net MVC? - c #What to choose as a good marker in C? - cHow can I guarantee that application windows are always on top? - pythonAll Articles