I see this on my cart also, I am not 100% sure if this issue is a ZC bug or specific to some hosts. I have been working with my host on extensively to solve some text encoding issues when upgrading to UTF-8 on MySQL 5, but since this issue existed before my ongoing upgrade and is the genesis of my issues I thought I post my findings, in hopes that someone will see what the issue is here. So:
When a foreign address ex.: ```
test13 üöä
is entered at paypal site using paypal express checkout the address is input as utf8 at paypal's unicode utf8 site and displays correctly there as ```
test13 üöä
the foreign address is then written to the ZC db in utf8 which is then displayed in ZC's Western latin1 browser as ```
test13 üöä
Switching the browser's text encoding from western latin1 to unicode will translate it back to what was entered at paypal, on the checkout_shipping page: ```
test13 üöä
viewing the address book entry in phpmyadmin (which is viewed in unicode/ utf8_general_ci) the address is ```
test13 üöä
dumping the table data into a Unicode (UTF-8, no BOM) file the address is displayed ```
test13 üöä',
``` reopening the file using the encoding Western (ISO latin 1) the address is ```
test13 üöä'
```.
another issue is when adding an address in ZC ```
test13 üöä
``` and using paypal express:
paypal sees: ```
test13 ���
``` in its default unicode browser setting, changing the view to Western latin:```
test13 üöä
I have tried to get rid of this issue by setting the default charset in the db to latin1 () ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=139 ;) and even utf8 () ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=139 ;), but nothing works.
sidetracking but: Possibly related to this issue: With my host no matter what the charset or collation the db is in all data will default to utf8 unless ZC specifies that it speaks latin1. Adding a line of code to the query_factory will fix this issue. However the paypal express issue remains with or without the query_factory change.
I am running ZC 1.3.8a on PHP5 and MySql 5, I have seen this issue with paypal addresses [Kübeckgasse] also on PHP5 and MySql 4.
Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41