Pages:

Order e-mail to admin cannot display danish chars QC 3.2

silaswulff

Avatar: silaswulff

2009-05-18 12:08

Hi.

When i get an e-mail with a new order, instead of danish chars æ, ø and å it displays weird chars which i cant read.

But i customers e-mail (SendOrderToCLient) it works just fine.

Anyone know what might be wrong?

Regards

» Quick.Cart v3.x

Localghost

cgan

Avatar: cgan

2009-05-18 13:59

silaswulff - perhaps you'll find something valuable in this topic: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5422&page=999
A bit down you will find treewood's and Makaron's comments.

cgan

beholder

Avatar: beholder

2009-05-18 20:22

Hi, Silas, if you still have this particular problem, just let me know, I'll help you to sort it out.

beholder

Avatar: beholder

2009-05-18 20:41

IMO you have an encoding problem in your files.

racan

No avatar

2009-05-20 00:24

i have the same problem with russian language in pages urls and emails sent to admin. can you send me a sloution to racan@mail.ru. will appriciate.

beholder

Avatar: beholder

2009-05-20 02:02

please find my email on this forum and send me your website address, I'll have a outward look at it.

webby

No avatar

2009-05-29 08:19

Hi (beholder) :)

I have the same problem with danish chars in mails from the shop (ver. 3.3)? How to fix that?

Thanks :)

Webby :)

beholder

Avatar: beholder

2009-05-29 22:55

Hi, please supply a link to your (test) shop, I'll check the symptoms.

webby

No avatar

2009-06-01 14:42

Hi Beholder

The shop is on the link:

http://www.campingxperten.dk/

(temp. login: webshop - shop) The shop is not open yet because of this problem...

It is in danish and it is the chars æ-ø-å in the auto-mail " send order to customer (i'm using the plug: sendOrderToClient v0.6)

Thanks :)

Webby :)

webby

No avatar

2009-06-02 19:04

Hey beholder - are you there... :) ?

Webby :)

beholder

Avatar: beholder

2009-06-03 13:12

hi Webby,

yes, I can confirm you have an encoding problem in the libraries/Trash.php.
Links like for example
http://www.campingxperten.dk/?campingm%C3%B8bler,15
show that change2Latin() function is not working properly.

Please try to add the custom characters of your language to the change2Latin() function to see if it can be mitigated easily or not. Don't forget to make sure save the whole Trash.tpl in UTF-8 format (UTF8 without BOM in Notepad++) in UNICODE compatible editor (Notepad++ is very good).

Let me know here how it went.

beholder

Avatar: beholder

2009-06-03 13:18

btw the correct behavior of basic email in QC is to translate these special characters to ASCII characters, for example:
Campingmøbler should look like Campingmobler

beholder

Avatar: beholder

2009-06-03 14:15

your problem was also confirmed in the order email. Please set up the change2Latin() characters correctly.

webby

No avatar

2009-06-03 21:14

Okay so fare...

But i'am not quite sure how to do it...
How to add custom chars to the change2latin in trash.php?

ex.

Array( 'ś', what and where do I write the danish chars?
Array( 's', what and where do I write the danish chars?

I'm using Notepad ++ and I know to save in utf-8 without BOM...

Thanks again :)

Webby :)

beholder

Avatar: beholder

2009-06-03 21:50

yes, just add 'ś' to the upper line and its equivalent in ascii ('s') to the lower line.
And also delete the characters you don't need in your language (those Polish chars) because the more characters, the slower the webpage is generating.

webby

No avatar

2009-06-04 07:38

Hi again

I'm a little bit slow... ;)

I have found this way in an other forum also...:

array('æ','ø','å','Æ','Ø','Å');
array('æ','ø','å','Æ','Ø','Å');

Will that work you think - does it look right?

Thanks again!

Webby :)

beholder

Avatar: beholder

2009-06-04 15:03

yes, but you have the semicolons at the end wrong, there should be commas.

Don't mess it up. Every character in one array should have its ascii equivalent in the another array. And that's it.

kalanta

No avatar

2009-06-04 17:20

did you try first and second array to write the same as the first?

Array( 'ś', 'ą', 'ź', 'ż'... ),
Array( 'ś', 'ą', 'ź', 'ż'... ),

beholder

Avatar: beholder

2009-06-04 17:30

WTF, kalanta, that is wrong. This should be foreign character -> ASCII translation table.

kalanta

No avatar

2009-06-04 17:41

just try this

Pages:
Back to top
about us | contact