Horde3D
http://www.horde3d.org/forums/

h3dutLoadFromDisk: Files not loaded (charset problem)
http://www.horde3d.org/forums/viewtopic.php?f=1&t=1534
Page 1 of 1

Author:  Irdis [ 02.06.2011, 20:25 ]
Post subject:  h3dutLoadFromDisk: Files not loaded (charset problem)

Horde utils has a great function for loading data from disk, but it has problems if the path, where content directory is located, contains non ANSI characters (for example, cyrillic characters). The problem is in the generated "filename" string, that is sent to the ifstream. It seems that this string is always using some standard charset and not the system default one. I made a small patch that fixes this problem by converting the "filename" string to the system's default charset.

Attachments:
File comment: This patch adds support for reading files that contain non ANSI characters in its path
HordeUtils_loccharset_support.patch [1.18 KiB]
Downloaded 1026 times

Author:  marciano [ 06.06.2011, 22:36 ]
Post subject:  Re: h3dutLoadFromDisk: Files not loaded (charset problem)

Thanks, that's definitely useful for reference.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/