Raised This Month: $32 Target: $400
 8% 

Solved UTF-8 characters in messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-20-2017 , 13:19   UTF-8 characters in messages
Reply With Quote #1

Hello,
I'm making a plugin with translations and want letters like ÅÄÖ to be able to get printed to chat if it's a Swedish player using it.

I'm using colors.inc for the plugin and CPrintToChat to print messages to a player.

When I do this, and get a message containing ÅÄÖ from the plugin printed to me, I just get a weird block. The characters don't print correctly.

How can I make them do this?

(It's in CS:GO)

EDIT: Solved by using Notepad++ and setting the document format to UTF-8. Sadly this doesn't seem to be possible in PawnStudio!
__________________

Last edited by condolent; 06-21-2017 at 07:49.
condolent 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 20:45.


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