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

UTF-8 Escape


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-31-2014 , 02:32   UTF-8 Escape
Reply With Quote #1

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.
Attached Files
File Type: inc utf8.inc (1.5 KB, 201 views)
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 08-31-2014 , 16:52   Re: UTF-8 Escape
Reply With Quote #2

nice one, thanks for the share. Would be probably use it to store player names.
Mathias. is offline
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 19:37.


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