Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: type safety and type casting in U++
Next Topic: does U++ use Smalltalk(Java) approach? [SOLVED] -No.
Goto Forum:
  


Current Time: Wed Sep 03 19:59:11 CEST 2025

Total time taken to generate the page: 0.05403 seconds