• 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
Re: Encodings problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encodings problem


  • Subject: Re: Encodings problem
  • From: TACKEL <email@hidden>
  • Date: Wed, 10 Sep 2003 20:51:10 +0100

Hi,

Before sending the email to the list I took a look at mamasam and found some
interesting emails but at the moment I haven't solved the problem.

I really appreciate any idea.

Thanks,
Tackel.


----- Mensaje Original -----
De: Chris Ridd <email@hidden>
Fecha: Miercoles, Septiembre 10, 2003 4:14 pm
Asunto: Re: Encodings problem

> On 10/9/03 2:47 pm, TACKEL <email@hidden> wrote:
>
> > Hi,
> >
> > Im trying to write some text (with Spanish accentuated words) to
> a file but
> > Im having
> > some encoding problems. I think Ive tried all the possible
> encodings but the
> > string
> > wasnt write properly. More or less this is what Im doing:
> >
> > ---------------------------------------------------------------
> > NSFileHandle *filehandle;
> >
> >
> > [filemng createFileAtPath: [@"~/Desktop/file.txt"
> > stringByExpandingTildeInPath]
> > contents: nil attributes: nil ];
> >
> > filehandle = [NSFileHandle fileHandleForWritingAtPath :
> [@"~/Desktop/file.txt"> stringByExpandingTildeInPath]];
> >
> > [filehandle writeData: [@"el camisn elictrico"
> > dataUsingEncoding:NSUTF8StringEncoding]];
>
> The @"..." notation in Obj C can only contain 7-bit characters.
> There are a
> couple of workarounds in the list archives at <."
> target="l">http://cocoa.mamasam.com/>.
> Cheers,
>
> Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Encodings problem
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Opening text objects to AppleScript
  • Next by Date: Re: Multiple Windows and Cocoa
  • Previous by thread: Re: Encodings problem
  • Next by thread: Re: Encodings problem
  • Index(es):
    • Date
    • Thread