How to create unicode file name in Linux?

I heard fopen supports UTF8, but I don’t know how to convert short array to utf8

How to create a file with letters in Unicode? I prefer to use only the built-in libraries (no enhancement, which is not installed in the linux window). I need to use fopen, but it's pretty simple.

+3
source share
1 answer

fopen(3)supports any valid byte sequence; coding is immaterial. Use nl_langinfo(3)c CODESETto get the encoding you should use for encoding, and libiconv or icu for the actual encoding.

+7

Source: https://habr.com/ru/post/1733712/


All Articles