|
|
Home » U++ Library support » U++ Core » several languages in the same String?
|
Re: several languages in the same String? [message #332 is a reply to message #323] |
Thu, 08 December 2005 13:48 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Wed, 07 December 2005 21:28 | can I have several languages in the same String? e.g EN, LT, RU etc?
|
String is nothing than set of bytes, You can store anything to the String. In fact, it is as widely used to store binary data as to store texts.
However, when it comes to internationalization, you have to define (somewhere) encoding of characters in bytes. Now for legacy support, U++ allows you to set a global encoding for application. New applications should use UTF-8 there and the rest of library is able to handle that (performing all necessary conversions on the fly).
If you are about to process i18n texts as character array, you will probably use 16-bit WString. There are implicit conversions between WString and String using global encoding.
A little bit unrelated issue is internationalization of application (which for most time means, translation of texts). Description of U++ i18n features can be found here:
http://upp.sourceforge.net/srcdoc$Core$i18n$en-us.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 10 01:53:05 CEST 2024
Total time taken to generate the page: 0.02775 seconds
|
|
|