Special characters (č, ž, ť) in plots

11 views
Skip to first unread message

michal...@gmail.com

unread,
Dec 11, 2016, 5:47:33 PM12/11/16
to formr
Hi,
I'm new here, I tried searching for solution, but can't find any. The problem is with special characters in our language. I'd like to use xlab = "Otvorenosť voči skúsenosti" in feedback plot, but it returns error. When I try without these characters, everything works. Do you know any solution please?

Thanks :)

Ruben Arslan

unread,
Dec 12, 2016, 2:00:17 AM12/12/16
to michal...@gmail.com, formr
Hi Michal,

formr is supposed to support all unicode (UTF8) characters. In our database we once used a restricted character set by accident
and for some reason some of the fields weren't switched yet. I fixed it now. This should now work everywhere.

A workaround would have been to call
title(main = stringi::stri_unescape_unicode("Otvorenos\\u0165 vo\\u010di sk\\u00fasenosti"))

You get the escaped string by calling
stringi::stri_unescape_unicode("Otvorenosť voči skúsenosti")
in an R session.

but this should not be necessary, except if you use characters beyond the set of utf8_unicode_ci (Czech characters are included in that).

Best,

Ruben

--
You received this message because you are subscribed to the Google Groups "formr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formr+un...@googlegroups.com.
To post to this group, send email to fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/formr/16f0e8d6-80e9-4183-857b-30bd1e7e389d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

michal...@gmail.com

unread,
Dec 12, 2016, 6:07:54 AM12/12/16
to formr, michal...@gmail.com
Wow, thank you for fast fix. It works ok :)

Dňa pondelok, 12. decembra 2016 8:00:17 UTC+1 Ruben Arslan napísal(-a):
Reply all
Reply to author
Forward
0 new messages