Forums / Addon Payment Modules / Encoding problem editing portuguese language file

Encoding problem editing portuguese language file

Started by letslv on 5 Jun 2013, 6:52 PM · Views: 1,403

Results 1 to 4 of 4
5 Jun 2013, 6:52 PM
#1
letslv avatar

letslv

New Zenner

Join Date:
Jun 2013
Location:
São Paulo
Posts:
20
Plugin Contributions:
0

Encoding problem editing portuguese language file

Hello,

I'm trying to modify the defines of moneyorder payment module, and I put some html tags there.
My problem is, I'm writing in portuguese, changing the portuguese "version", and I'm having an encoding problem!
I made everything I could to fix it, and the only thing that worked was put a header('charset'), it fixed the moneyorder define but broke the encondig of another things.

Regards,
Letícia.

18 Jun 2013, 6:45 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Encoding problem editing portuguese language file

Not sure what exactly you mean by "encoding problem". Do you mean you have a problem with your editor? or an error on your website? or a PHP error? etc?
What exact header() code did you add?

Are you saving your language files with the proper encoding when your text-editor saves the file?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jun 2013, 7:07 PM
#3
letslv avatar

letslv

New Zenner

Join Date:
Jun 2013
Location:
São Paulo
Posts:
20
Plugin Contributions:
0

Re: Encoding problem editing portuguese language file

Ok, i'll try to explain it better:
I'm trying to activate the money order payment module, and I have to write the defines in english and portuguese too, and portuguese word has orthographic accent, when i try to modificate the defines at languages/portuguese/... the words are shown with an encoding problem! And I can change de charset because all of the others defines and modules. Could I explain better?

18 Jun 2013, 7:14 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Encoding problem editing portuguese language file

  1. Copy /includes/languages/**english/**modules/payment/moneyorder.php to /includes/languages/**portuguese/**modules/payment/moneyorder.php
  2. Use a reliable text editor on your PC (such as Notepad++ http://notepad-plus.sf.net ) to edit /includes/languages/**portuguese/**modules/payment/moneyorder.php ... make your translations, and save the file. When saving the file, use the correct encoding for that language.
  3. Upload the /includes/languages/**portuguese/**modules/payment/moneyorder.php file to your server.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.