Skip to content
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

UnicodeDecodeError with german Umlauts #88

Open
agitator opened this issue Jun 11, 2021 · 2 comments
Open

UnicodeDecodeError with german Umlauts #88

agitator opened this issue Jun 11, 2021 · 2 comments

Comments

@agitator
Copy link
Member

Running into this, with german Umlauts...

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
('There was an error processing', '../shop/never_sold.pt')

i18ndude-5.3.4with python2.7

@mauritsvanrees reporting to you because you asked for it ;-)

@mauritsvanrees
Copy link
Member

Where did I ask for that?

What is the full command line that you use here?

Is that file public, maybe in bda.shop?

Is there German in your template? You should probably not do that. English is recommended. But I can imagine wanting it, especially if you want your website to be in four languages, none if which is English. Should be doable, unless this error is too low in the stack.

Any chance you can try in Python 3?

@agitator
Copy link
Member Author

agitator commented Jun 12, 2021

In the readme, but just kidding ;-)

Command is in the integration package, generated with bobtemplates.plone at some point.

i18ndude rebuild-pot --pot $domain.pot --create $domain ../
i18ndude sync --pot $domain.pot */LC_MESSAGES/$domain.po

Seems to be an issue with any non ascii character, ran into it first because of a € character.

Running it in Py3 looks better, no UnicodeErrors at all

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

2 participants