Author |
Topic |
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 16 June 2002 : 14:08:22
|
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
|
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)...
~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~< |
|
|
Deleted
deleted
4116 Posts |
Posted - 02 October 2002 : 22:01:31
|
Bump! (I can't believe nobody answered this!)< |
Stop the WAR! |
|
|
|
Topic |
|
|
|