Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2013
    Location
    São Paulo
    Posts
    20
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

  3. #3
    Join Date
    Jun 2013
    Location
    São Paulo
    Posts
    20
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

 

 

Similar Threads

  1. Portuguese Language Pack
    By joanorsky in forum Addon Language Packs
    Replies: 81
    Last Post: 4 Jun 2013, 11:52 PM
  2. parse error on index page after editing language file
    By tomintulsa in forum General Questions
    Replies: 5
    Last Post: 9 Jun 2009, 07:21 PM
  3. Editing text in template file instead of language file
    By cochlear in forum General Questions
    Replies: 2
    Last Post: 4 Jun 2008, 01:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR