comp.lang.ada
 help / color / mirror / Atom feed
* How to write text files in UTF8?
@ 2002-06-28  5:12 erreur
  2002-06-28 12:59 ` Jacob Sparre Andersen
  0 siblings, 1 reply; 3+ messages in thread
From: erreur @ 2002-06-28  5:12 UTC (permalink / raw)


How to write text files in UTF8 in Ada95 ?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to write text files in UTF8?
  2002-06-28  5:12 How to write text files in UTF8? erreur
@ 2002-06-28 12:59 ` Jacob Sparre Andersen
  2002-07-03 14:27   ` Georg Bauhaus
  0 siblings, 1 reply; 3+ messages in thread
From: Jacob Sparre Andersen @ 2002-06-28 12:59 UTC (permalink / raw)


Mr. Error wrote:

> How to write text files in UTF8 in Ada95?

I think that one might argue that this is compiler
dependent. I think I have read that GtkAda 2 should include
routines for this, but you could try to implement it
yourself. If I should do it, I would look into how I can
write a "binary" stream of octets to a file, and then write
routines that map String and Wide_String to one or more
octets according to the UTF-8 specification.

Jacob
-- 
The great LEGO building competition of the year:
              http://www.1000steine.de/themen/bauwettbewerb/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to write text files in UTF8?
  2002-06-28 12:59 ` Jacob Sparre Andersen
@ 2002-07-03 14:27   ` Georg Bauhaus
  0 siblings, 0 replies; 3+ messages in thread
From: Georg Bauhaus @ 2002-07-03 14:27 UTC (permalink / raw)


Jacob Sparre Andersen <sparre@nbi.dk> wrote:
: Mr. Error wrote:
: 
:> How to write text files in UTF8 in Ada95?
: 
: I think that one might argue that this is compiler
: dependent.

This is from GNAT reference manual


Wide_Text_IO

Wide_Text_IO is similar in most respects to Text_IO, except
that both input and output files may contain special sequences
that represent wide character values. The encoding scheme for
a given file may be specified using a FORM parameter:

WCEM=x

as part of the FORM string (WCEM = wide character encoding
method), where x is one of the following characters

...


-- Georg



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-03 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-28  5:12 How to write text files in UTF8? erreur
2002-06-28 12:59 ` Jacob Sparre Andersen
2002-07-03 14:27   ` Georg Bauhaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox