php - Character encoding issue with PayPal IPN -
this question has answer here:
- utf-8 way through 14 answers
hello stuck character encoding problem, please help.
what did:
- i created database utf-8 encoding.
- i created database connection charset, names etc set utf-8.
- i try set paypal button encoding both utf-8 , iso-8859-9.
- added header('content-type: charset=utf-8'); postback php file.
- added setlocale(lc_all, "tr_tr"); postback php file.
- i set hidden charset input paypal button code. set "lc" tr_tr.
- tried change encoding "iconv" both latin5 utf-8 , iso-8859-9 utf-8
- double checked if files working on utf-8 without bom
but no luck...
after sent form, on paypal page, shows "options" correctly values not inserting database shown instead there question marks.
please help, thanks.
edit: i'm trying turkish characters correctly: üğİışŞöÖçÇÜĞ
i advise encoding shipping address , names using before storing in database:
mb_convert_encoding("üğİışŞöÖçÇÜĞ", 'html-entities', 'utf-8')
Comments
Post a Comment