Message 1 of 4
[LISP] Writing a UNICODE character to a file - how?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to write a unicode character to a file so that it is visible when I open the file.
(setq f (open "c:/1.txt" "w"))
(write-line (read "\"\U+00A9\"") f)
(close f)
I try in different ways:
(write-line "\\U+00A9" f)
(write-line "\U+00A9" f)
(write-line (read "\"\U+00A9\"") f)
But instead of getting an © in the file, I get \\U+00A9 all the time.
Anyone have any idea how to get 1 character defined by unicode in file?