473,466 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C++ and internationalization/localization

Hi,

I am looking for advice on i18n/l10n using c++. I understand about
wchar & wstreams. I have gone thru the net for some knowledge. All
speak of encodings like utf8/utf16/iso8859 and so. I also see that by
using utf8, we can achieve i18n and l10n using char itself. It would
be great if someone can provide or point out resources in c++ with
lots of example programs. Books are also welcome. References should
speak of persistence, network communications.

Thanks,
Balaji.
Feb 4 '08 #1
2 2493

Have a look at ICU:

http://www-306.ibm.com/software/glob.../icu/index.jsp

Basically you want to store the data in some portable format (one of
the UTF-X formats is easy). How you display it is then OS dependent.
But this is where ICU comes in. It basically allows conversion from
anything to anything and UTF is a good starting point (though it will
depend on your requirements).

Most modern OS's Win/Mac usually have Unicode API for displaying text
(not sure about UNIX). The basic char API's are now usually a simple
wrappers that call the Unicode version of the same function after some
conversion (usually).

Hope that helps.
Feb 4 '08 #2
On Feb 5, 4:11*am, Martin York <Martin.YorkAma...@gmail.comwrote:
Have a look at ICU:

http://www-306.ibm.com/software/glob.../icu/index.jsp

Basically you want to store the data in some portable format (one of
the UTF-X formats is easy). How you display it is then OS dependent.
But this is where ICU comes in. It basically allows conversion from
anything to anything and UTF is a good starting point (though it will
depend on your requirements).

Most modern OS's Win/Mac usually have Unicode API for displaying text
(not sure about UNIX). The basic char API's are now usually a simple
wrappers that call the Unicode version of the same function after some
conversion (usually).

Hope that helps.
Thanks Daniel/Martin. Just started looking at ICU. Isn't it possible
to use the locale features of c++ - i purchased the book "Standard C++
Streams and Locales - Langer/Kreft". Can i not use void * to store the
data and use encoders/decoders - like read first few bytes and based
on them find out the encoding and then apply the corresponding
decoding and then display within their locale. Also i would like to
know about utf8 vs utf16. I came across utf8cpp(sourgeforge.net) which
is an utf8 c++ lib, but it has got converters for utf16 too. I do not
know why?
I may be totally wrong as i am very much new to this subject.

Thanks,
Balaji.
Feb 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian Kelley | last post by:
I have been using gettext and various utilities to provide internationalization for a wxPython application and have not really been liking the process. Essentially it uses a macro-style notation...
6
by: Zlatko Matić | last post by:
What is the easiest way to accomplish internationalization in Access application?
2
by: Internationalization | last post by:
COMSYS Globalization Practice is looking for a C#/.NET Internationalization consultant in OR. Can you please contact me if you are interested or else know someone who would be interested. It will...
6
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with...
0
by: gabym | last post by:
Hi there. I've been using VS05 Beta 2 for a couple of weeks now and I'm impressed with the added resource management capabilities they added since VS03. I have several questions. 1. I noticed...
5
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope...
2
by: bruno | last post by:
I need to localize my ASP.NET app and I just used "Tools" --"generate local resources" command and everything works fine in my WebForms. Resource file name is: MyWebForm.aspx.resx under a subDir...
1
by: Neo Geshel | last post by:
I know this probably OT, but I need to know if there is any way to “upgrade” the host header system of IIS 6 (Win 2003) to accept internationalized domain names. That is, domain names with...
3
by: Computer Guru | last post by:
I have a VB.NET 2005 application with several forms and a couple hundred "strings." I've been looking into all the localization improvements in VB.NET, and I can't seem to find anything that...
12
by: Juan T. Llibre | last post by:
re: !I found an MSDN document that explains why what I'm trying to do should work Lee, From : http://www.w3.org/TR/REC-xml/ "A special attribute named xml:lang may be inserted in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.