English "©" is a Unicode character?

13 replies
Goto Page
To the start Previous 1 Next To the start
24.07.12 10:00:38 am
Up
YY_201207
User
Offline Off
I know starting "text" with an RGB color code "©RRRGGGBBB" can change the text‘s color. When I save the file it says there is a Unicode character and i cannot save the file in ANSI code. I guess "©" is the "Unicode character". What should i do?

I use windows' notepad to edit lua files.
24.07.12 10:02:23 am
Up
Avo
User
Offline Off
Yes, #169. Use string.char(169)
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
24.07.12 10:07:37 am
Up
Alistaire
User
Offline Off
You should not use notepad. Get a real editing program like Programmer's Notepad.
IMG:http://i.imgur.com/5zhwOTP.png
24.07.12 10:08:08 am
Up
YY_201207
User
Offline Off
And how to use "©" in a map's txt file like de_cs2d.txt?
24.07.12 10:13:37 am
Up
Avo
User
Offline Off
If you are so lazy, you can use file cs2d Server info editor v1.0 (43) for map info.
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
24.07.12 10:23:27 am
Up
YY_201207
User
Offline Off
In programmer‘s notepad and cs2d server info editor, "©" is still "?".
like this
Code:
1
2
3
?55255255CS2D - Bomb/Defuse

?55255000official CS2D Map by Mr. Keks (Inarie)
24.07.12 10:29:30 am
Up
Alistaire
User
Offline Off
Then you have a fucking terrible computer.
IMG:http://i.imgur.com/5zhwOTP.png
24.07.12 10:32:28 am
Up
YY_201207
User
Offline Off
Is it because english isn't my windows system’s language?
24.07.12 10:34:16 am
Up
Hador
User
Offline Off
just save the text with a unicode encoding?
Even the normal windows editor should have that option under 'Save As...'
24.07.12 10:36:00 am
Up
YY_201207
User
Offline Off
user Hador has written:
just save the text with a unicode encoding?
Even the normal windows editor should have that option under 'Save As...'


but cs2d doesn't recognize Unicode files
24.07.12 10:42:58 am
Up
Alistaire
User
Offline Off
unicode encoding ~= unicode file

Save it as .lua
IMG:http://i.imgur.com/5zhwOTP.png
24.07.12 12:15:20 pm
Up
DC
Admin
Offline Off
nope, © is NOT a unicode character. It's a standard ANSI ASCII character (8 bit). It equals an unsigned byte with the value 169.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
25.07.12 12:13:32 am
Up
Geez
GAME BANNED
Offline Off
Method I'm always using that works 100%.

Just open one from default map infos in Notepad (normal Windows notepad), copy the © symbol and paste it into your map info also in Notepad. Confirmed and tested, will work for sure.

Another method is to install Notepad++ (great editor) and just check which charset you want to use.
25.07.12 12:18:30 am
Up
Avo
User
Offline Off
Read what I wrote. For lua scripts use
Code:
1
string.char(169)

it return this magic character for color changing.

For map info use Factis' little program. Simple and easy.
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
To the start Previous 1 Next To the start