nanospace
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Encoding issue for Paypal redirectso there is no way to use thai language as the product name right?
Forum: Plugins
In reply to: [WooCommerce] Encoding issue for Paypal redirectHello Claudio Sanches,
I am using Thai Language to create product name this page –> https://realgaddshop.com/?p=10372
As I mention before once I add product to cart and check out by Paypal (https://realgaddshop.com/checkout/) it’s show encoding message
{"result":"success","redirect":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_cart&business=order%40realgadd.com&no_note=1¤cy_code=THB&charset=UTF-8&rm=1&upload=1&return=http%253A%252F%252Frealgaddshop.com%252Fcheckout%252Forder-received%252F10401%253Fkey%253Dwc_order_5447d9e3cf02f%2526%2523038%253Butm_nooverride%253D1&cancel_return=http%253A%252F%252Frealgaddshop.com%252Fcart%252F%253Fcancel_order%253Dtrue%2526%2523038%253Border%253Dwc_order_5447d9e3cf02f%2526%2523038%253Border_id%253D10401%2526%2523038%253Bredirect%2526%2523038%253B_wpnonce%253D638f4c9368&page_style=&paymentaction=sale&bn=WooThemes_Cart&invoice=RG-10401&custom=a%3A2%3A%7Bi%3A0%3Bi%3A10401%3Bi%3A1%3Bs%3A22%3A%22wc_order_5447d9e3cf02f%22%3B%7D¬ify_url=http%3A%2F%2Frealgaddshop.com%2Fwc-api%2FWC_Gateway_Paypal%2F&first_name=%E0%B8%9A%E0%B8%B8%E0%B8%8D%E0%B8%A2%E0%B8%87&last_name=%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%A2%E0%B8%A4%E0%B8%97%E0%B8%98%E0%B8%B4%E0%B9%8C&company=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99&address1=612%2F229+aspace+asoke+dindang&address2=%E0%B8%94%E0%B8%B4%E0%B8%99%E0%B9%81%E0%B8%94%E0%B8%87&city=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%9E&state=Bangkok+%28%26%233585%3B%26%233619%3B%26%233640%3B%26%233591%3B%26%233648%3B%26%233607%3B%26%233614%3B%26%233617%3B%26%233627%3B%26%233634%3B%26%233609%3B%26%233588%3B%26%233619%3B%29&zip=10400&country=TH&email=benzth%40gmail.com&night_phone_b=0909829779&day_phone_b=0909829779&no_shipping=1&tax_cart=0&item_name_1=Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8...&quantity_1=1&amount_1=990&item_number_1=700867225836test"}
I notice the “item_name_1” value is not right WWW form HTTP post
I Think it’s should be
Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8%94%E0%B8%82%E0%B9%88%E0%B8%A7%E0%B8%99++%E0%B8%A3%E0%B8%B8%E0%B9%88%E0%B8%99+UPYC+-+83+%E0%B8%AA%E0%B8%B5+%E0%B8%94%E0%B8%B3%E0%B9%83%E0%B8%AA+Smoke++(test)
please let me know if you need more information.
Thank you
Forum: Plugins
In reply to: [WooCommerce] Encoding issue for Paypal redirectI notice that when I use https://www.percederberg.net/tools/text_converter.html to convert non-English language from plain text non encoding to WWW Form HTTP Post
with
“Air Jacket ??? iPhone 6 ???????? ?????????????? ????????????? ???? UPYC – 83 ?? ???? Smoke”
the result is
Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8%94%E0%B8%82%E0%B9%88%E0%B8%A7%E0%B8%99++%E0%B8%A3%E0%B8%B8%E0%B9%88%E0%B8%99+UPYC+-+83+%E0%B8%AA%E0%B8%B5+%E0%B8%94%E0%B8%B3%E0%B9%83%E0%B8%AA+Smoke
but with the same product name wooCommerce return WWW form HTTP post =
item_name_1=Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8...
then when I put this return WWW form HTTP post back to https://www.percederberg.net/tools/text_converter.html to recode it show and error “Conversion Error: URIError: URI malformed”
This might cause problem with paypal that don’t understand the information
I think this might help solve the bug or issue about this encoding problem
Thank you
Forum: Plugins
In reply to: [WooCommerce] Encoding issue for Paypal redirectI have the same problem! in Thai it return
{“result”:”success”,”redirect”:”https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_cart