2012/5/3 Marco Ciampa <ciampix@xxxxxxxxx>: > > Qui: http://en.wikipedia.org/wiki/NTFS è indicato chiaramente > (vedi il riquadro a destra) che l'encoding è a UTF-16 Grazie della conferma - ti avevo creduto sulla parola. > http://stackoverflow.com/questions/2050973/what-encoding-are-filenames-in-ntfs-stored-as > >>So, on Windows there is no shortcut. You need to use wfopen, or the >>native API CreateFileW (or create your project using the Unicode build >>settings and just call Createfile) with wchar_t* strings. > > Che non c'è una via d'uscita, le API ansi non vengono filtrate o > tradotte, se le usi devi fare tutto da solo. Questo mi stupisce, perché Windows ha un settaggio apposito per decidere quale encoding usare per tutte le applicazioni che non sono Unicode-aware: http://econ.la.psu.edu/~hbierens/NONUNICODE.HTM A me sembra strano che questo setting non venga usato da fopen, ma trattandosi di Windows può tranquillamente essere come dici tu. Dovrei fare un test per saperlo, ma come già sai sono pigro - resterò con il dubbio fino alla prima volta che mi servirà ;-) Grazie dei link, Antonio -- Per iscriversi (o disiscriversi), basta spedire un messaggio con OGGETTO "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx