473,414 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Questions about Unicode

Dear all,
I have a questions about whether it is possible to use UNICODE by
Standard C++.
If not, Are there any libraries can be used to achieve it.
Any help will be appreciated.
Jan 24 '07 #1
9 1511
Alex Shao wrote:
I have a questions about whether it is possible to use UNICODE by
Standard C++.
If not, Are there any libraries can be used to achieve it.
It is possible. C++ Standard makes no mention of Unicode except as
an example of encoding. Hence, no mechanism exists in C++ that is
defined to work specifically with Unicode. All is defined at the
OS level. Post your _specific_ question to the newsgroup that deals
with your OS.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 24 '07 #2
Alex Shao <al*******@163.comwrote:
I have a questions about whether it is possible to use UNICODE by
Standard C++.
Yes it is possible. I do it all the time.
If not, Are there any libraries can be used to achieve it.
http://icu.sourceforge.net/
Jan 24 '07 #3
Daniel T. wrote:
Alex Shao <al*******@163.comwrote:
> I have a questions about whether it is possible to use UNICODE by
Standard C++.

Yes it is possible. I do it all the time.
Actually I mean by Standard C++ only. Is it still possible?
>
> If not, Are there any libraries can be used to achieve it.

http://icu.sourceforge.net/
Thanks.
Jan 24 '07 #4
Alex Shao wrote:
Daniel T. wrote:
>Alex Shao <al*******@163.comwrote:
>> I have a questions about whether it is possible to use UNICODE by
Standard C++.

Yes it is possible. I do it all the time.

Actually I mean by Standard C++ only. Is it still possible?
Unicode is just a convention. What do you then mean by "use UNICODE"?

Can you "use" a JPEG file with Standard C++ only? Depends on what is
meant by "use", right? You can't display it. You can, however, figure
out its size and some other things that just flow out of the convention
that is JPEG.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 24 '07 #5
Alex Shao <al*******@163.comwrote:
Daniel T. wrote:
Alex Shao <al*******@163.comwrote:
I have a questions about whether it is possible to use UNICODE
by Standard C++.
Yes it is possible. I do it all the time.

Actually I mean by Standard C++ only. Is it still possible?
Yes, it can be done "by standard C++ only". I do it all the time.
If not, Are there any libraries can be used to achieve it.
http://icu.sourceforge.net/

Thanks.
Your welcome.
Jan 24 '07 #6
In article <ep**********@news.cn99.com>, Alex Shao <al*******@163.comwrote:
>Daniel T. wrote:
>Alex Shao <al*******@163.comwrote:
>> I have a questions about whether it is possible to use UNICODE by
Standard C++.

Yes it is possible. I do it all the time.

Actually I mean by Standard C++ only. Is it still possible?
There's nothing in the Standard C++ that stops you using UNICODE.

I would recommend you to spend some time at www.unicode.org to
understand what UNICODE is. Read the "what is unicode" entry.
Then go and read about utf8, utf16, utf32, ucs2, surrogate pairs,
etc.

Yan
Jan 24 '07 #7
Alex Shao wrote:
Dear all,
I have a questions about whether it is possible to use UNICODE by
Standard C++.
If not, Are there any libraries can be used to achieve it.
Any help will be appreciated.
Standard C++ is ignorant of UNICODE. It can be implemented
but it has serious deficiencies. Look up wchar_t and related
functions and classes.
Jan 25 '07 #8


On Jan 25, 3:41 pm, Ron Natalie <r...@spamcop.netwrote:
Alex Shao wrote:
Dear all,
I have a questions about whether it is possible to use UNICODE by
Standard C++.
If not, Are there any libraries can be used to achieve it.
Any help will be appreciated
Standard C++ is ignorant of UNICODE. It can be implemented
but it has serious deficiencies. Look up wchar_t and related
functions and classes.
Such an answer asks for more! Immediate questions are: what is it that
has serious deficiencies? C++ or Unicode? And what are those
deficiencies? And if the OP is to look up wchar_t and related
functions/classes, what does it mean that C++ is ignorant of Unicode?
Your posting looks and feels to me like FUD, but knowing you from other
posts, my belief is that I must have misunderstood something.

/Peter

Jan 25 '07 #9
peter koch wrote:
>
Such an answer asks for more! Immediate questions are: what is it that
has serious deficiencies? C++ or Unicode? And what are those
deficiencies? And if the OP is to look up wchar_t and related
functions/classes, what does it mean that C++ is ignorant of Unicode?
Your posting looks and feels to me like FUD, but knowing you from other
posts, my belief is that I must have misunderstood something.
C++ has char's which serve double duty as the native character type
and also as the minimum addressable unit of storage (this itself
has its own problems). It also has the concept of making up multibyte
characters (larger character encoding formed of variable numbers of
consecutive chars). The standard also provides for "wide" chars
made wchar_t types. Unfortunately a number of interfaces only have
char based arguments and no wchar_t versions. This includes file
names and the program arguments. This is a deficiency. It assumes
that there is a single known mapping form wchar_t to multibyte to
get around the problem.

C++ is ignorant of Unicode in the same way that it is ignorant of
ASCII. It has no concept of character encoding. While ASCII
is common it's not mandated. The multibyte encoding might
be UTF-8 Unicode, but it might be EUC or some one of the older
Chineese/Japanese encodings.

>
Jan 25 '07 #10

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

Similar topics

4
by: WX | last post by:
I love Python, and the unicode support is wonderful. The character set I am using is the Hindi/Devanagari character set at unicode range U+901.) I have TWO newbie questions: (#1) If I paste...
4
by: Fuzzyman | last post by:
I have a couple of questions about the UTF encodings. The codecs module has constants definded for the UTF32 encoding, yet this encoding isn't supported as a standard encoding. Why isn't it...
5
by: jalil | last post by:
1. I download a page in python using urllib and now want to convert and keep it as utf-8? I already know the original encoding of the page. What calls should I make to convert the encoding of the...
8
by: slot | last post by:
Is there any problem to use "std::string" with unicode strings? When using std::string, does it have to be initialized? Is the following code OK? string s; S = "This is a test string"; ...
38
by: Luke Matuszewski | last post by:
Welcome I have read the in the faq from jibbering about the generic DynWrite, but i also realized that is uses only innerHTML feature of HTML objects. (1) Is there a DOM function which is very...
1
by: Kenneth McDonald | last post by:
I am going to demonstrate my complete lack of understanding as to going back and forth between character encodings, so I hope someone out there can shed some light on this. I have always...
3
by: KvS | last post by:
Hi all, I've been reading about unicode in general and using it in Python in particular lately as this turns out to be not so straightforward actually. I wanted to aks two questions: 1) I'm...
3
by: aj | last post by:
A few collation questions on SQL Server 2005 SP2, which I'll call SQLS. The default collation for SQLS is apparently SQL_Latin1_General_CP1_CI_AS. I wish to use a variation of this,...
4
by: Donn Ingle | last post by:
Hi, A soon-to-be happy new year to everyone! I'm 100% new to this i18n lark and my approach so far has been to create a .mo file per module in my app. My thinking was, why load one huge .mo...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.