Raised This Month: $99 Target: $400
 24% 

Special Characters - Character set for HL - CS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-07-2010 , 18:56   Special Characters - Character set for HL - CS
Reply With Quote #1

I know there are several ways to use this characters, this is just one

Never wanted to use accents or other stuff in your plugins? Here is a way of doing that.

CS uses UTF-8 codification, however, when we write a plugin chances are that use either ANSI or ASCII depending on the editor.

Besides all this technical stuff, its actually pretty simple to use special characters. Just instead of writing for example

PHP Code:
client_print(0print_chat"Te mat"
What, actually won't work

We write

PHP Code:
client_print(0print_chat"Te maté"
And in CS it will apear as

Code:
Te mat
Anyway, this is the list.

Code:
 = á
 = é
 = *
 = ó
 = ú

 = Á
 = ‰
 = Í
 = “
 = š

 = ñ
 = ç

 = ‘
 = ‡

 = ©
 = ®
™ = „
 = ˜
 = ª

 = ä
 = ë
 = ï
 = ö
 = ü

 = „
 = ‹
 = Ï 
 = – 
 = œ


If you want any other character, please tell me.

And, allthough it may look the same the transformation, just copypaste it, will work.

Last edited by 01101101; 01-04-2011 at 19:52.
01101101 is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 01-07-2010 , 19:05   Re: Special Characters - Character set for HL - CS
Reply With Quote #2

Ah, I've been looking for this
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 01-07-2010 , 23:30   Re: Special Characters - Character set for HL - CS
Reply With Quote #3

How can we use a ; in cs?
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-08-2010 , 00:24   Re: Special Characters - Character set for HL - CS
Reply With Quote #4

Quote:
Originally Posted by P34nut View Post
How can we use a ; in cs?
Just ; works.

UTF-8 is compatible with ASCII. Any of this chars http://www.asciitable.com/ (ASCII, NOT ASCII EXTENDED) will work without any change.
01101101 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-08-2010 , 00:25   Re: Special Characters - Character set for HL - CS
Reply With Quote #5

; looks like a , in the chat.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-08-2010 , 05:25   Re: Special Characters - Character set for HL - CS
Reply With Quote #6

Nice trick, good job.
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-08-2010 , 06:13   Re: Special Characters - Character set for HL - CS
Reply With Quote #7

If you are going to do that, it would be more appropriate to do a language file, keeping the normal way but saving the file as UTF-8 without BOM. It's easy to do, and easy to add/remove/update sentences.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 01-08-2010 , 06:31   Re: Special Characters - Character set for HL - CS
Reply With Quote #8

just encode your .sma file into UTF-8 , all symbols would appear as they should
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Old 01-08-2010, 06:33
Arkshine
This message has been deleted by Arkshine. Reason: nvm
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 01-08-2010 , 08:06   Re: Special Characters - Character set for HL - CS
Reply With Quote #9

Quote:
Originally Posted by Owyn View Post
just encode your .sma file into UTF-8 , all symbols would appear as they should
How can I do that?
__________________
ehha is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 01-08-2010 , 08:31   Re: Special Characters - Character set for HL - CS
Reply With Quote #10

notepad -> save as, below name is how it saved ANSI or UTF-8, but you need "UTF-8 without BOM" which isn't there, so i suggest downloading notepad+ then encode menu
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode