unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* UTF8 string storage and retrieval in XML
@ 2016-02-01 15:05 Richard Shann
  2016-02-01 15:36 ` Richard Shann
  2016-02-01 18:16 ` Mark H Weaver
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Shann @ 2016-02-01 15:05 UTC (permalink / raw)
  To: guile-user

Can anyone explain what is going on when you try to store strings with
non-ASCII characters? Here is an example:

guile> (define another-data "Čć")           
guile> another-data
"�\x8c�\x87"
guile> (display another-data)
Čćguile> 

I would expect evaluating another-data to give "Čć" not 
"�\x8c�\x87" (what is that?)...

My problem comes with storing an association list with the second
element a string with a non-ASCII character in it. I'm storing the alist
as a string with

(format #f "'~s" myalist)

but when I try to store this string on disk using XML it barfs on
reloading.

Richard Shann








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

end of thread, other threads:[~2016-02-01 18:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 15:05 UTF8 string storage and retrieval in XML Richard Shann
2016-02-01 15:36 ` Richard Shann
2016-02-01 15:43   ` Thompson, David
2016-02-01 16:58     ` Richard Shann
2016-02-01 18:16 ` Mark H Weaver
2016-02-01 18:22   ` Richard Shann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).