Problem with componentsJoinedByString in Thai language
Problem with componentsJoinedByString in Thai language
- Subject: Problem with componentsJoinedByString in Thai language
- From: "Didier Guillion" <email@hidden>
- Date: Fri, 27 May 2005 06:59:09 +0200
Hi,
In my application I use "componentsSeparatedByString" and
"componentsJoinedByString" to substitute a substring by another in an
unicode (UTF-8) string.
This work well in all language like French, Japanese, Chinese, but not
in Thai.
If the source string is in Thai, the result is broken.
Here is my function:
- (NSString *) SubstituteString:(NSString *)source fromTable:(NSString *)
tag fromTable:(NSString *)substWith
{
NSArray *listItems;
listItems=[source componentsSeparatedByString:tag];
if(listItems)
source=[listItems componentsJoinedByString:substWith];
return(source);
}
Any help is welcome...
Best regards
-----------------------------------------------------------------------
Didier Guillion
email@hidden
Web site: <www.myriad-online.com>
-----------------------------------------------------------------------
Please, always repeat my message in your answer.
Répétez s'il vous plait mon message dans votre réponse.
-----------------------------------------------------------------------
If you want to receive the new versions announcements by e-mail go to :
www.myriad-online.com/cgi-bin/news.pl
Pour être tenu au courant des dernières versions inscrivez-vous à la
lettre d'information :
www.myriad-online.com/cgi-bin/news.pl?lang=fr
-----------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden