• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with componentsJoinedByString in Thai language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • [ FIXED] Problem with componentsJoinedByString in Thai language
      • From: "Didier Guillion" <email@hidden>
  • Prev by Date: Strange Error
  • Next by Date: Listing only unique attributes in a set of Core Data Objects
  • Previous by thread: [SOLVED] Re: Strange Error
  • Next by thread: [ FIXED] Problem with componentsJoinedByString in Thai language
  • Index(es):
    • Date
    • Thread