Can not support chinese?

View: New views
5 Messages — Rating Filter:   Alert me  

Can not support chinese?

by mango-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


like method indexOf("") or match("")
if i type "chinese word"  inside
always respone -1 and null
Is it anyway to prove?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@...
To unsubscribe from this group, send email to greasemonkey-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not support chinese?

by mango-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


sorry for wrong word
prove->improve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@...
To unsubscribe from this group, send email to greasemonkey-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not support chinese?

by Anthony Lieuallen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 10/29/09 16:53, mango wrote:
> if i type "chinese word"  inside

Make sure to save your script as UTF-8.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@...
To unsubscribe from this group, send email to greasemonkey-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not support chinese?

by Kuo Yang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

啊。长见识了。
我还纳闷为什么我这里可以用 indexOf 找到中文字,而 mango 不能。

原来是字符集的问题。



On Fri, Oct 30, 2009 at 6:41 AM, Anthony Lieuallen <arantius@...> wrote:

On 10/29/09 16:53, mango wrote:
> if i type "chinese word"  inside

Make sure to save your script as UTF-8.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@...
To unsubscribe from this group, send email to greasemonkey-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not support chinese?

by mango-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thank you guys very much

On 10月30日, 上午6時41分, Anthony Lieuallen <arant...@...> wrote:
> On 10/29/09 16:53, mango wrote:
>
> > if i type "chinese word"  inside
>
> Make sure to save your script as UTF-8.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@...
To unsubscribe from this group, send email to greasemonkey-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---