Forum

> > CS2D > Scripts > "©" is a Unicode character?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch "©" is a Unicode character?

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt "©" is a Unicode character?

YY_201207
User Off Offline

Zitieren
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.

alt Re: "©" is a Unicode character?

YY_201207
User Off Offline

Zitieren
In programmer‘s notepad and cs2d server info editor, "©" is still "?".
like this
1
2
3
?55255255CS2D - Bomb/Defuse

?55255000official CS2D Map by Mr. Keks (Inarie)

alt Re: "©" is a Unicode character?

YY_201207
User Off Offline

Zitieren
user Hador hat geschrieben
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

alt Re: "©" is a Unicode character?

DC
Admin Off Offline

Zitieren
nope, © is NOT a unicode character. It's a standard ANSI ASCII character (8 bit). It equals an unsigned byte with the value 169.

alt Re: "©" is a Unicode character?

Geez
GAME BANNED Off Offline

Zitieren
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.

alt Re: "©" is a Unicode character?

Avo
User Off Offline

Zitieren
Read what I wrote. For lua scripts use
1
string.char(169)
it return this magic character for color changing.

For map info use Factis' little program. Simple and easy.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht