py2akv wrote:
> Good morning,
> 
> How to "cout" foreign accented letters like Á/á, À/à, Â/â, Ã/ã, Ä/ä, 
> etc.?
> 
> Geraldo

You are entering into a realm that is convoluted thanks to decades of 
layers upon layers being added to it:  Character sets.  Unicode aims at 
breaking the never-ending trend of inventing new character sets but is 
FAR from perfect.  For instance, Unicode can't properly represent 
Klingon in all its magnificent glory.  Or Asian languages such 
as...Chinese.  You know - that large country that holds roughly 1/5 of 
the world's population?

And you've entered into a difficult realm as well - how to output 
characters once you've got them ready to output?  If you stick to ASCII, 
you can probably get away with cout/printf() assuming the ASCII 
characters you want are supported (use hex codes).  But if you start 
fiddling with other character sets, that gets very messy, really fast 
(conversion routines, etc.).  Especially Unicode - you almost always 
have to call a completely different set of functions to output Unicode 
characters (a.k.a. "wide-character" functions).

It would be easy if everyone knew English.  Computer systems were built 
around that character set.  All other character sets were created as an 
afterthought and bolted onto the side.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to