Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Unicode programming

Name: Anonymous 2006-01-15 11:55

Hello...can someone help me by providing a good website that teaches how to do unicode programming in C++. A sample code would be much appreciated...

Name: Anonymous 2006-01-15 19:47

>>1

Yeah, you'll find the answer at this URL:

http://www.google.com/

Good luck!

Name: Anonymous 2006-01-15 23:05

>>2
Come on! I'm serious. I tried google already.
I couldn't find any good website.

Name: Anonymous 2006-01-16 1:57

Name: Anonymous 2006-01-16 4:30

http://www.justfuckinggoogleit.com

Although I salute you for using Unicode. You're making the world easier, so I hope you find out how to do it and wish you good luck. I could help if it was plain C but not C++.

Name: Anonymous 2006-01-16 16:14

Plase post some sample codes

Name: Anonymous 2006-01-16 17:04 (sage)

Some sample codes? I don't see the point, but sure. The kanji for me is 79C1, demon is 983C, greek alpha is 03B1, beta is 03B2.

Name: Anonymous 2006-01-18 8:51

Name: Anonymous 2010-09-21 18:58

Use wstrings and wchar_t

Name: Anonymous 2010-09-21 21:37

Buy Qt
   犬
Use QString.

Name: Anonymous 2010-09-21 23:16

>>10
YHBT, or possibly IHBT.

What is, praytell, the encoding which wchar_t uses?  On some systems it's UTF-16, on some systems it's UTF-32.  Do you know how you tell the difference?

This is why sane people use UTF-8 or UTF-16 explicitly, or UTF-32 if they have compelling reasons.  Just make your own typedefs for them, or use "uint16_t" and whatnot.  The "wchar" interface is a cruel joke perpetuated by an uncaring standards committee who needed to get *some* wide character thing out the door regardless of how underspecified it would be.  However, you NEED to know the encoding of your characters if you want to do IO or call any library functions, and remember that wchar_t does NOT let you know the encoding.

C1x, of course, fixes it, giving programmers "char16_t" and "char32_t".  Cocks also adds the same types.  If you need to do anything interesting (I mean, other than I/O and parsing) with Unicode, such as find out where the grapheme cluster boundaries are, then just get ICU.  Everyone uses ICU, except a few crazy folks like me (I use mostly UTF-8 in my apps).

Note that ICU does NOT use wchar_t, so you're busted if you need to do anything interesting with text and you made the blunder of trusting wchar_t to do anything useful.

As for Unicode programming, it's not technically challenging or anything there are just a lot of rules about what you can and can't do.

Name: Anonymous 2010-09-21 23:53

Name: Anonymous 2010-09-22 8:10

>>13
Joel is faggot. And write like a faggot.

Name: Anonymous 2010-09-22 9:18

>>14
W-D

Name: Anonymous 2010-09-22 10:03

>>14
You must be confused, bro. Faggots don't write. Faggots are eaten.

Name: Anonymous 2010-10-06 8:04

>>16
EAT MY ANUS

Name: Anonymous 2010-10-06 10:47

>>17
Let me express my gratitude for your bumping of this thread with your helpful reply. I sincerely hope that someday I will be as useful as you are, Sir and Gentleman Mr >>17.

bows

Name: Anonymous 2010-10-06 19:08

>>18
faggot

Name: Anonymous 2010-10-06 20:54

>>19
Please be polite

Name: Anonymous 2010-10-06 21:42

>>20
nigger

Name: Anonymous 2010-10-07 1:35

>>21
* African American

Name: Anonymous 2010-11-27 10:35

Name: Selector!!test 2011-03-30 9:00

test

Name: Selector!test 2011-03-30 9:01

test2

Name: Anonymous 2011-10-20 19:07

>>22
* African Canadian

Name: Anonymous 2011-10-21 23:04

pppp

Name: Anonymous 2011-10-21 23:05

pppp









pppp

Name: Anonymous 2011-10-22 0:24

العربية

Name: Anonymous 2011-10-22 8:23

>>29
Reported to the NSA

Don't change these.
Name: Email:
Entire Thread Thread List