Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / October 2007



Tip: Looking for answers? Try searching our database.

non latin character sets and accented latin character with refind

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ogre11 - 29 Oct 2007 22:05 GMT
I need to use refind to deal with strings containing accented characters like
?itt? l?su, but it doesn't seem to find them.  Also when using it with cyrillic
characters , it won't find individual characters, but if I test for [\w] it'll
work.

I found a livedocs that says cf uses the Java unicode standard for characters.
Is it possible to use refind with non latin characters or accented characters
or do I have to write my own Java?
PaulH **AdobeCommunityExpert** - 30 Oct 2007 03:36 GMT
> I need to use refind to deal with strings containing accented characters like
> ?itt? l?su, but it doesn't seem to find them.  Also when using it with cyrillic
> characters , it won't find individual characters, but if I test for [\w] it'll
> work.

works fine for me using unicode data:

<cfprocessingdirective pageencoding="utf-8">
<cfscript>
t="Tá mé in ann gloine a ithe; Ní chuireann sé isteach nó amach orm";
s="á";
writeoutput("search:=#t#<br>for:=#s#<br>found at:=#reFind(s,t,1,false)#");
</cfscript>

what's the encoding for your data?
ogre11 - 30 Oct 2007 14:39 GMT
I wasnt using cfprocessingdirective, thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.