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

Problem Creating a User #1613

Closed
ludovicf01 opened this issue Aug 16, 2017 · 5 comments
Closed

Problem Creating a User #1613

ludovicf01 opened this issue Aug 16, 2017 · 5 comments

Comments

@ludovicf01
Copy link

ludovicf01 commented Aug 16, 2017

Has the creation of a user I have an error.
"Encoding::CompatibilityError in User#terms"
capture du 2017-08-16 15-57-46
and log rails server
capture du 2017-08-16 16-01-52

@tomhughes
Copy link
Member

This is an installation/configuration error in your environment and not an issue with the software.

@tomhughes
Copy link
Member

My best guess by the way, as I've already said on IRC, is that you are somehow running your ruby process in a single byte ASCII encoding.

I know you said you were using bundle exec rails server to start the builtin rails web server in which case, if you're on linux, you could try setting LANG=en.utf8 in the environment before running it, though I thought pretty much all modern linuxes defaulted to a UTF8 locale.

If it's not linux then you'll need to find out how to control the default locale for ruby on your platform.

@ludovicf01
Copy link
Author

thans you tomhughes

@ludovicf01
Copy link
Author

The trouble was in config/legales/GB.yml where "owner's" got a strange quote instead of a normal quote. At least this solved my problem.
Solved with @psychiclocust ;)

@tomhughes
Copy link
Member

Well yes that has a UTF8 encoded smart quote and the french one will have UTF8 encoded accents. None of that would be a problem if your ruby was running in UTF8 mode though and running it in single byte is probably just going to break in other places.

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