Back to Dates & Currencies Localize Support

klas.wirholm
klas.wirholm

Hallo! There is a bug in Opera and Chrome for the character encoding. When I put this code in my partials for single blog post:

{{ post.published_at | dateformat_long_time }}

I get wrong characters for some Swedish characters, like Å, Ä, Ö. For an example for Monday in Swedish, I get: MÃ¥ndag

The funny thing is that al other strftime() change on the site (even outside the loop for single blog post). That is probably also a bug, but it would be nice to change al off them, also (the bug as a future).

Here is my html head definition in my Layout file:

<!doctype html> <html lang="sv-SE"> <head> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

It is a very promising plugin, bay the way, it could be great to use if you have a lot of languages to define date for!

Last updated

klas.wirholm
klas.wirholm

I figured out my self.

In October dIrectory: plugins -> utopigs -> loclalize -> Plugin.php:

In: private function localize($date)

(~ LINE 178)

Disabled:

Carbon::setUtf8(true);

By:

//Carbon::setUtf8(true);

This knowlage, after reading this: https://stackoverflow.com/questions/50336919/bad-characters-in-utf-8-carbon-formatlocalized/50655610

Now we only need the plugin developer to change this, also! ;)

1-2 of 2