Re: [Vala] Base64 encode/decode

2015-03-11 Thread Daniel Espinosa
happens when you try to print t instead of s2. You forgot to call setlocale: GLib.Intl.setlocale (GLib.LocaleCategory.ALL, ); Or, if you're using 0.28, just GLib.Intl.setlocale(); will work. On Tue, 2015-03-10 at 16:43 -0600, Daniel Espinosa wrote: I would like to know how Vala Base64

Re: [Vala] Base64 encode/decode

2015-03-11 Thread Evan Nemerson
(GLib.LocaleCategory.ALL, ); Or, if you're using 0.28, just GLib.Intl.setlocale(); will work. On Tue, 2015-03-10 at 16:43 -0600, Daniel Espinosa wrote: I would like to know how Vala Base64 encode/decode UTF-8 strings. If my string have no special characters, Base64 encode/decode

Re: [Vala] Base64 encode/decode

2015-03-10 Thread Evan Nemerson
would like to know how Vala Base64 encode/decode UTF-8 strings. If my string have no special characters, Base64 encode/decode works flawlessly. But if it has a character like á it fails to decode, well when try to cast to string fails. Code: public class App : Object { public

[Vala] Base64 encode/decode

2015-03-10 Thread Daniel Espinosa
I would like to know how Vala Base64 encode/decode UTF-8 strings. If my string have no special characters, Base64 encode/decode works flawlessly. But if it has a character like á it fails to decode, well when try to cast to string fails. Code: public class App : Object { public static void