www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Re: Unicode strings constants

↑ ↓ ← "Nic Tiger" <nictiger progtech.ru> writes:
Hi all,

Does anybody know any convenient way to specify Unicode characters (wchar_t)
in Unicode strings?

The problem is that although L"Test" gives me Unicode string constant, I
cannot embed some Unicode characters in it.

I want something like L"\x1234 Test" to give me a constant with the first
character equal U+1234.

For now DMC gives first char = U+0123, second L'4' and so on.
May be I do something wrong?

Waiting for an answer,
Nic Tiger.
Dec 24 2002
↑ ↓ → "Nic Tiger" <nictiger progtech.ru> writes:
I found out how to do what I want:
when I use \u1234 I get Unicode character U+1234.

Nic Tiger.

"Nic Tiger" <nictiger progtech.ru> сообщил/сообщила в новостях следующее:
news:auafcf$2cce$1 digitaldaemon.com...
 Hi all,

 Does anybody know any convenient way to specify Unicode characters

 in Unicode strings?

 The problem is that although L"Test" gives me Unicode string constant, I
 cannot embed some Unicode characters in it.

 I want something like L"\x1234 Test" to give me a constant with the first
 character equal U+1234.

 For now DMC gives first char = U+0123, second L'4' and so on.
 May be I do something wrong?

 Waiting for an answer,
 Nic Tiger.

Dec 24 2002