LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   question: cygwin for porting linux app to windoze ??? (https://www.linuxquestions.org/questions/programming-9/question-cygwin-for-porting-linux-app-to-windoze-4175411136/)

ntubski 06-18-2012 12:50 PM

Quote:

Originally Posted by maxreason (Post 4706241)
Maybe what I need are two functions (taken from "somewhere"), one to convert UTF8 to UTF16 for windoze, and one to convert UTF8 to UTF32 for linux (though that's probably not necessary since linux can tolerate UTF8 pretty much everywhere, I suspect).

That's what I suggested libiconv for.

Sergei Steshenko 06-18-2012 01:00 PM

Quote:

Originally Posted by maxreason (Post 4706241)
First thing I noticed about TheBetterStringLibrary is... no support for internationalization at all. In other words, the main reason I need something (a compatible unicode encoding on both platforms) is the one thing it doesn't have.

Maybe what I need are two functions (taken from "somewhere"), one to convert UTF8 to UTF16 for windoze, and one to convert UTF8 to UTF32 for linux (though that's probably not necessary since linux can tolerate UTF8 pretty much everywhere, I suspect).

Oh, but have I talked about wxWdigets ? And its unicode support: http://docs.wxwidgets.org/trunk/overview_unicode.html :


Quote:

Choosing Unicode Representation

wxWidgets uses the system wchar_t in wxString implementation by default under all systems. Thus, under Microsoft Windows, UCS-2 (simplified version of UTF-16 without support for surrogate characters) is used as wchar_t is 2 bytes on this platform. Under Unix systems, including Mac OS X, UCS-4 (also known as UTF-32) is used by default, however it is also possible to build wxWidgets to use UTF-8 internally by passing --enable-utf8 option to configure.
.


All times are GMT -5. The time now is 02:05 AM.