Re: File.new and encoding
- From: nobu@xxxxxxxxxxxxx
- Date: Wed, 30 Nov 2005 00:35:27 +0900
Hi,
At Wed, 30 Nov 2005 00:17:29 +0900,
Robert Klemme wrote in [ruby-talk:167988]:
> > I'm still quite new to ruby, but have written a simple code generator.
> > The generator opens some files and combines them to a new one. The
> > resulting file is encoded as iso-8859-1, but it looks like ruby writes
> > an UTF-8 Markter to the beginning of the file. Is that possible?
>
> What's an UTF-8 marker? I know only two byte UTF-16 marker but AFAIK
> there is no marker for UTF-8. Did I miss something?
It would be UTF-8 encoded BOM, but ruby itself never write it
automatically.
> > How can I tell ruby which encoding to use, if I write to textfiles?
Can't you show the code?
--
Nobu Nakada
.
- Follow-Ups:
- Re: File.new and encoding
- From: Achim Domma (SyynX Solutions GmbH)
- Re: File.new and encoding
- References:
- File.new and encoding
- From: Achim Domma (SyynX Solutions GmbH)
- Re: File.new and encoding
- From: Robert Klemme
- File.new and encoding
- Prev by Date: Re: GUI IDE for Ruby
- Next by Date: Re: Using Amazon's WSDL services
- Previous by thread: Re: File.new and encoding
- Next by thread: Re: File.new and encoding
- Index(es):
Relevant Pages
|