Is there a way to detect filename encoding on Windows and Linux in c++? -
im trying make crossplatform application in c++ character conversion. have setup conversion table in utf-8 rules. eq( = 诶). use boost library filenames. understanding have convert them encoding x utf-8, conversion, convert encoding x , save new filename. how find out encoding filesystem using?
windows uses utf-16 , linux platforms "binary". binary mean whatever bytes see filename filename - don't decode or re-encode bytes. there no indicator state format written in, it's utf-8.
Comments
Post a Comment