AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   UTF-8 Escape (https://forums.alliedmods.net/showthread.php?t=247334)

Zephyrus 08-31-2014 02:32

UTF-8 Escape
 
1 Attachment(s)
Well the title says it all, it's a small include to escape UTF-8 text, handy for JSON and anything web related

The usage is simple:

Code:

UTF8_Encode(in_string, in_string_len, out_string, out_string_max_len);
The code could probably be tweaked to be nicer, but it works.

Mathias. 08-31-2014 16:52

Re: UTF-8 Escape
 
nice one, thanks for the share. Would be probably use it to store player names.


All times are GMT -4. The time now is 18:38.

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