Raised This Month: $ Target: $400
 0% 

how to block "not single character word"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
0920357689
Senior Member
Join Date: Apr 2008
Old 07-01-2010 , 00:54   Re: how to block "not single character word"
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
Each slot in the variable "name" is a single character. If my name is "fysiks" then "name" would look like this:

Code:
name[0] = 'f'
name[1] = 'y'
name[2] = 's'
name[3] = 'i'
name[4] = 'k'
name[5] = 's'
name[6] = 0 // End of String
YES
but if name is CHT CHS or JP or other language
name = "中文"

name[0] != '中'
name[1] != '中'
name[2] != '中'

this word is
three character in utf-8
two character in ascII

name [0-2] = '中'

so..how to chang next word start len to 'strlen' check
0920357689 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2010 , 18:05   Re: how to block "not single character word"
Reply With Quote #2

I still don't quite understand what is going on. I'm not sure that the characters that you are typing are being interpreted correctly by the forum.

Give me an example name and tell me what each of those characters are in UTF-8. So, my name is "fysiks", tell me {U+0066, U+0079, U+0073, U+0069, U+006B, U+0073}
__________________
fysiks 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 14:46.


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