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

How to set ASCII to UTF8 in extension


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rsdtt
Senior Member
Join Date: Oct 2009
Old 01-07-2015 , 14:30   How to set ASCII to UTF8 in extension
Reply With Quote #1

when I use Forward->PushString(temp), it just show ?????
I know it need to use utf8, how can I set it?
__________________
I am learning sm now
rsdtt is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-07-2015 , 15:00   Re: How to set ASCII to UTF8 in extension
Reply With Quote #2

Use PushStringEx and add SM_PARAM_STRING_UTF8 to the sz_flags.
psychonic is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 01-08-2015 , 08:50   Re: How to set ASCII to UTF8 in extension
Reply With Quote #3

Quote:
Originally Posted by psychonic View Post
Use PushStringEx and add SM_PARAM_STRING_UTF8 to the sz_flags.
i try
Forward->PushStringEx(temp, j, SM_PARAM_STRING_UTF8 | SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK);

and it is not work
__________________
I am learning sm now
rsdtt is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 02-06-2015 , 04:18   Re: How to set ASCII to UTF8 in extension
Reply With Quote #4

use iconv can change to utf8 on linux
__________________
QQ:116268742

Last edited by K.K.Lv; 02-06-2015 at 04:20.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-06-2015 , 06:32   Re: How to set ASCII to UTF8 in extension
Reply With Quote #5

Quote:
Originally Posted by K.K.Lv View Post
use iconv can change to utf8 on linux
he's trying to push a utf8 string to a forward for plugins to use
__________________
WildCard65 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 13:35.


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