ruby on rails - Could not load translations: Invalid trailing UTF-8 octet in YAML -


im new rails , trying internationalize app i18n. in locales yaml file spanish version im trying set translations follows:

es:   categories: "categorias"   home: inicio   live_casino: "casino en vivo"   sportsbook: deportes 

this works charm, add accent in spanish word this:

categories: "categorías" 

rails gives me following error:

i18n::invalidlocaledata in welcomecontroller#index can not load translations .../config/locales/es.yml: #<psych::syntaxerror: (.../config/locales/es.yml): invalid trailing utf-8 octet @ line 1 column 1> 

ive tried ive found in web , nothing has worked please help!

i opened locale file in notepad++ , noticed encoded in "utf-8 w/o bom". changed "utf8" , error went away.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -