1

example File root/path/fName.log

In which encoding the name of fName.log is encoded in both windows and linux?

does (fileName.encoding==file.encoding)?true:false;

5

The encoding used for a file and the encoding use for the name of that file are different things. They don't correlate.

The encoding use for the name of the file is depended on the filesystem. For windows reasonable to expect NTFS and another question (What encoding are filenames in NTFS stored as?) has some information about. For Linux it would be harder to answer and it seems like it also matter what kind of framework is trying to read a file if you look at the answers for a question like: What charset encoding is used for filenames and paths on Linux?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.