Skip to content

Does not unicode correctly #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drmuey opened this issue Oct 4, 2015 · 1 comment
Open

Does not unicode correctly #7

drmuey opened this issue Oct 4, 2015 · 1 comment

Comments

@drmuey
Copy link

drmuey commented Oct 4, 2015

Example

session username => 'I ♥ Perl';

When used immediately it works (because its not fetching it from the session).

On subsequent hits (i.e. when fetching from the session) the ♥ is mojibake.

Fix

-    return JSON->new->allow_blessed->convert_blessed;
+    return JSON->new->allow_blessed->convert_blessed->utf8(1);

With that in place it shows I ♥ Perl when fetched from session.

@drmuey
Copy link
Author

drmuey commented Oct 4, 2015

The actual fix is likely more complex since it should dothe right thign based on the app’s config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant