Raised This Month: $51 Target: $400
 12% 

UTF-8 Characters?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jackpf
Senior Member
Join Date: Dec 2009
Location: Uhm...
Old 12-25-2009 , 12:16   UTF-8 Characters?
Reply With Quote #1

Hi all,
I was trying to use UTF-8 characters in a PrintToChatAll(), but when I encode the sourcecode as UTF-8, i get an error: error 010: invalid function or declaration on line 1.

I was just wondering, is this possible?

Cheers,
Jack.
jackpf is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 12-25-2009 , 12:30   Re: UTF-8 Characters?
Reply With Quote #2

First idea: Make sure your editor doesn't add any kind of prefix (BOM). When in doubt, open the saved file in a hex editor and remove weird characters at the beginning.
__________________
hello, i am pm
PM is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 12-25-2009 , 12:59   Re: UTF-8 Characters?
Reply With Quote #3

I suggest Notepad++. You can use it to encode the file in UTF-8 without BOM.
Bigbuck is offline
jackpf
Senior Member
Join Date: Dec 2009
Location: Uhm...
Old 12-25-2009 , 14:16   Re: UTF-8 Characters?
Reply With Quote #4

Ahh that worked perfectly, encoding it without BOM.

Thanks guys
jackpf is offline
Reply



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 12:54.


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