Sylvain
2012-03-29 10:45:29 UTC
Hi,
I've been writing a small program to generate stickers from a csv file
Using the gopdf package, everything works file, excepted accentuated
characters.
The following code
iter :=1
phrase := fmt.Sprintf("Numéro %d", iter)
text.Text(phrase)
canvas.DrawText(text)
generates garbage where the "é" should be.
Any pointer on how to write normal, go utf-8 strings to PDF ?
regards,
Sylvain
I've been writing a small program to generate stickers from a csv file
Using the gopdf package, everything works file, excepted accentuated
characters.
The following code
iter :=1
phrase := fmt.Sprintf("Numéro %d", iter)
text.Text(phrase)
canvas.DrawText(text)
generates garbage where the "é" should be.
Any pointer on how to write normal, go utf-8 strings to PDF ?
regards,
Sylvain