Advance software forum
February 04, 2012, 02:12:24 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Ajax Checkout - other charset not supported ??  (Read 831 times)
0 Members and 1 Guest are viewing this topic.
zgrywus
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: February 04, 2009, 02:48:01 PM »

This mod not suppotted other charset - only iso-8859-1 Huh?

P.S.
Sorry to my english.
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #1 on: February 05, 2009, 02:07:54 AM »

Hello zgrywus,

The charset is set manually in the code, just find it in the code and change to the one you need.
Logged
zgrywus
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: February 05, 2009, 02:23:50 AM »

I'm changing file ajax/javascript/requester.js:
Code:
this.commInterface.setRequestHeader("Content-Type", "text/html; charset=ISO-8859-1");
this.commInterface.setRequestHeader('Accept-Charset','ISO-8859-1');
to:
Code:
this.commInterface.setRequestHeader("Content-Type", "text/html; charset=ISO-8859-2");
this.commInterface.setRequestHeader('Accept-Charset','ISO-8859-2);

and ?? Steel dont working - on the page displaing iso-8859-1.

If unkomment code:
Quote
header('Content-type: text/html; charset=ISO-8859-1');
- in the shop displaing error (canot modify header .....).

Please help.
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #3 on: February 07, 2009, 10:08:57 AM »

Hello,

You are right, changing
Code:
this.commInterface.setRequestHeader("Content-Type", "text/html; charset=ISO-8859-1");
this.commInterface.setRequestHeader('Accept-Charset','ISO-8859-1');
to:
Code:
this.commInterface.setRequestHeader("Content-Type", "text/html; charset=ISO-8859-2");
this.commInterface.setRequestHeader('Accept-Charset','ISO-8859-2);
should be sufficient...

However, the files themselves (if they contain special characters) SHOULD also have ISO-8859-2 charset.
So open each file which contains special characters and convert to a proper charset, otherwise it will not work.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!