Laravel-Translator icon indicating copy to clipboard operation
Laravel-Translator copied to clipboard

Bad Encoding

Open vluzrmos opened this issue 10 years ago • 11 comments

My translations is having a bad encoding, symbols like "é" to "é" chars ... and others.

vluzrmos avatar Feb 05 '15 23:02 vluzrmos

Thanks @vluzrmos for submitting an issue, I will check it later, and determine a fix for this.

rmariuzzo avatar Feb 06 '15 01:02 rmariuzzo

@vluzrmos im trying to replicate the error but "é á ©" and others chars are saved without problem and correctly encoded in the destination lang file.

Did you checked your lang file directly to rule out presentation problems ? if the chars are saved in the file with bad encoding, can you tell me about your enviroment ?

lupena avatar Feb 06 '15 04:02 lupena

Im using a Windows 8 PC... The terminal encoding maybe throw that trouble... As soon as possible I will upload a screenshot

vluzrmos avatar Feb 06 '15 06:02 vluzrmos

I try to use the Git Bash terminal, but had the same thing..

vluzrmos avatar Feb 06 '15 06:02 vluzrmos

I have forked this package to upgrade to Laravel 5... It works, but have that bug encoding, I don't know if that are something different on encoding for Laravel 5

vluzrmos avatar Feb 06 '15 06:02 vluzrmos

The forked is https://github.com/vluzrmos/laravel-translator

vluzrmos avatar Feb 06 '15 06:02 vluzrmos

Hi @vluzrmos would you mind uploading the same file in which the problem is presented. At list with the key - value pair that your are having the issue with so we can replicate the same scenario in our environment.

Note: Sorry for my english

romaldyminaya avatar Feb 06 '15 13:02 romaldyminaya

Your english is good @romaldyminaya ! I would also ask @vluzrmos to tell us the character encoding used.

rmariuzzo avatar Feb 06 '15 14:02 rmariuzzo

Hi, see my screenshots https://www.dropbox.com/sh/efsthtne7cde2h9/AAAG5uwIQSuFhvqCjLpFcXDia?dl=0

vluzrmos avatar Feb 06 '15 14:02 vluzrmos

Hi @vluzrmos did you find out how to solve your encoding problem ?

romaldyminaya avatar May 06 '15 19:05 romaldyminaya

I leave MS Windows, but I think if you are using it, you will have troubles.... a simple solution is use a virtual machine like Homestead. @romaldyminaya

vluzrmos avatar May 06 '15 21:05 vluzrmos