Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error in decoding BASE64


Recommended Posts


I have oscommerce 2.3.4 running with php 5.6.40, hosted on a linux server. Since beginning of September, I have the following problem: when a client insert non-ASCII characters (mainly Greek letters) in the name field of the contact or order form, I get a base64 encoded Header sent to my email address and an "Undelivered Mail Returned to Sender" in case of order. Since the content is fine, there must be a problem with the MIME header. With ASCII characters, everything's fine. Any ideas?


Link to comment
Share on other sites

@NerysIt is an encoding problem. Languages like Greek require extra space to store the characters. You can try changing the CHARSET define in includes/languages/english.php, or whichever language file you use to the following but you will probably need to change the database to use UTF-8. Ask your host to do that if you don't know how.

define('CHARSET', 'utf-8');


Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...