Hi, first time pollen user here. I am trying to write a book in Chinese.
Seems like Chinese could not be correctly parsed by pre-processor. Below is
an example. Is there a way to get it working?Thanks a lot.
*vegetables.pp*
#lang pollen
Vegetables
Broccoli 西蓝花
*output in browser:*
Vegetables
> On Sep 6, 2017, at 6:34 PM, jche...@gmail.com wrote:
>
> Hi, first time pollen user here. I am trying to write a book in Chinese.
> Seems like Chinese could not be correctly parsed by pre-processor. Below is
> an example. Is there a way to get it working?Thanks a lot.
>
> vegetables.pp
> #la
I can reproduce the issue you mention, but it has nothing to do with Pollen,
which supports Chinese just fine. The one to blame is the browser!
In the image above, I visited the same document in Safari (top) and using a
command-line program called cURL (bottom). Safari breaks the Chinese text
Thanks a lot for the prompt reply, Matthew and Leandro. I verified the text
now shows ok with the UTF-8 coding. Go pollen :)
On Wednesday, September 6, 2017 at 12:55:12 PM UTC-5, Leandro Facchinetti
wrote:
>
> I can reproduce the issue you mention, but it has nothing to do with
> Pollen, which
> On Sep 6, 2017, at 7:55 PM, Leandro Facchinetti 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/encoding
Right, I should have been more specific. When I said “Pollen does not come with
opinions regarding enconding,” I was thinking of HTTP headers, HTML meta-tags
and so forth. These are ways to instruct clients (for example, browsers) which
encoding to use, and neither Racket nor Pollen include such
> On Sep 7, 2017, at 7:53 PM, Leandro Facchinetti wrote:
>
> the Pollen development server could send an ‘Content-Encoding’ HTTP header,
> to avoid issues like the one jcheng8 reported. By default, it would send
> ‘UTF-8’, but this choice could be parameterizable via the ‘pollen/setup’
> mech
Fair enough 😀
--
Leandro Facchinetti
https://www.leafac.com
--
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