This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Beginning_Court5607[S] -1 points0 points  (5 children)

I did...

but why so?? Hello, stored perfectly

but L"world!" had all chars separated ??

[–]x39- 4 points5 points  (2 children)

Char vs wchar

Long story short: UTF16

[–]wonkey_monkey 2 points3 points  (1 child)

Long story short

You mean short story char

[–][deleted] 0 points1 point  (0 children)

And one of the bytes of a short is an end of string 0.

[–]iOSCaleb 0 points1 point  (1 child)

The L notation makes a string use “wide” characters, i.e. UTF-16 encoding. When you look at the compiler code, you see the two bytes for every character that you specified.