On Tuesday, January 13, 2015 at 1:47:12 AM UTC-5, ele...@gmail.com wrote: > > But since those annoying operating systems can return filenames encoded in > non-UTF8 it probably will not be safe in 0.4 to just return a UTF8 string. >
Whatever encoding the operating system uses, Julia (or actually libuv) will convert it to UTF-8. For example, on Windows libuv uses FindFirstFileW, which returns the filename in the UTF-16 encoding, but this is converted to UTF-8. Basically, the only time that you need to deal with non-UTF8 encodings in Julia is if you are doing I/O with some file format that expects a different encoding, or when you are using ccall to call an external library that uses non-UTF8.