> On Sep 6, 2017, at 7:55 PM, Leandro Facchinetti <lea...@icloud.com> wrote:
> 
> Pollen does not come with opinions regarding enconding, the author (you) has 
> to specify it.

PS

By default, all Racket strings are encoded as UTF-8. And thus, so are Pollen 
strings.

https://docs.racket-lang.org/reference/encodings.html 
<https://docs.racket-lang.org/reference/encodings.html>

A curious fact of the modern world: text files don't have a way of explicitly 
signaling their encoding. Most programs that display plain text (for instance, 
editors like Sublime Text) rely on guessing (which usually works well enough).

But sometimes it doesn't.

If you really, really want to work with an encoding other than UTF-8, you can 
change your Pollen templates to convert the encoding at output (see, e.g., 
`reencode-output-port`).

https://docs.racket-lang.org/reference/port-lib.html#%28def._%28%28lib._racket%2Fport..rkt%29._reencode-output-port%29%29
 
<https://docs.racket-lang.org/reference/port-lib.html#(def._((lib._racket/port..rkt)._reencode-output-port))>


-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to