Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 Counting the characters length of one string ??
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 16 June 2002 :  14:08:22  Show Profile
Hi~
i use Snitz in Chinese language (double-bit character), and i found somewhere when we want to display the part of a long string...
example like this (in active.asp)
ChkString(left(Topic_Subject, 20),"display") & "..."
then it seem can't get a satisfied topic length for me.

i mean it all count the Chinese and English character by one, so if a topic mixed with Chi/Eng characters, it just miss the correct topic length we wanted.

and looking for solution about this, i know something in VB can fix this problem.. (StrConv("¤¤­^Mixed", vbFromUnicode) ... and so on..).
but for me, this VB stuff also too hard to deal with...(i try it b4 and get failure.. must remind this..i just begin learning program from Snitz ! )

so i really want to know, if anyway can solve this counting problem in Snitz easilly ??

thanks if someone know how to do about this.


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~<

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 16 June 2002 :  14:15:49  Show Profile
sorry, forgot to say what i wanted...

i need something can count one Chinese character by TWO, and count the general english/number.. charater just by one.
so i can display a suitable string length when using ChkString(Left("....",xx)...


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 02 October 2002 :  22:01:31  Show Profile
Bump! (I can't believe nobody answered this!)<

Stop the WAR!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07