Problem with Greek characters when redirecting to PayPal

Problem with Greek characters when redirecting to PayPal

Postby ngoagr@.....com » Sat May 05, 2012 10:46 am

hello,

I am having this problem with Greek characters when redirecting to PayPal, we are using paypal legacy plugin with configuration filed edited.
That problem existed and before the OPC intastallation but we had fixed it by adding "charset" => "utf-8" (if I recall correctly ) in paypal configuration file (ps_paypal.cfg.php)

If OPC is disabled, when redirecting to paypal all characters are correct but when OPC is enabled we get --> Αριθμός Παραγγελίας: 42
those strange characters in Greek are "Αριθμός Παραγγελίας" (= "Order Number")

bellow is where I found "Αριθμός Παραγγελίας" in VM language file in common folder
Code: Select all
'PHPSHOP_ORDER_LIST_ID' => 'Αριθμός Παραγγελίας',
'PHPSHOP_ORDER_PRINT_PO_NUMBER' => 'Αριθμός Παραγγελίας',


site is in Greek but you can give it a try at: www.hlektronikatsigara.com.gr

can you help me fix that problem?
ngoagr@.....com
 
Posts: 3
Joined: Sat Apr 21, 2012 7:03 pm

Re: Problem with Greek characters when redirecting to PayPal

Postby admin » Sat May 05, 2012 5:08 pm

Hello,
Where exactly does the problem occur? The information for paypal are sent via the extra info of the payment method's configuration and received via the notify script.

I recommend to check this file:
/administrator/components/com_virtuemart/languages/common/greek.php -> please check if the file is using utf8 without BOM.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Problem with Greek characters when redirecting to PayPal

Postby ngoagr@.....com » Sun May 06, 2012 1:56 pm

this happens when I click on "confirm order".
it redirects me to paypal and on below image you can see what I mean...
Image

greek.php -> is using utf8 without BOM.
ngoagr@.....com
 
Posts: 3
Joined: Sat Apr 21, 2012 7:03 pm

Re: Problem with Greek characters when redirecting to PayPal

Postby admin » Thu May 10, 2012 3:04 pm

Hmm, these lines are inserted with the extra info tab of the paypal payment method configuration with
Code: Select all
"item_name" => $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').": ". $db->f("order_id"),


pls attach here or send me by email your greek lang file and i will double check it. Also you may want to write me an email and i will provide you my skype for online support.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Problem with Greek characters when redirecting to PayPal

Postby ngoagr@.....com » Mon May 14, 2012 10:35 am

to get rid of the problem I changed that specific line to english and it works.
I have also attached greek.php file for you to check and sent you an email with my skype name.
Attachments
greek.zip
(21.32 KiB) Downloaded 1002 times
ngoagr@.....com
 
Posts: 3
Joined: Sat Apr 21, 2012 7:03 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron