curl - Encoding Issue and PHP -


i' using php curl page. post data page , when output response bunch of characters this:

‹˙˙”mkÂ@e÷ţŠ 

i realize encoding problem.

after set default charset utf-8 in php.ini output different still unreadable:

�����mk�@e 

when go page , manually submit form page displays fine in browser, when output trough php using curl make post , output response unreadable. how fix this, how set encodings , where?

i using ce characters , had similar problems before: did not having pages utf-8 everywhere page encoding, need check of files - php, js, css etc. - physically encoded in utf-8 too.

for purpose using great notepad++, go encoding -> convert utf-8

notepad++ not know saved file(s) in utf-8 , thinks example ansi: if not notice , save problem may repeat once again, learned somewhere nice little trick: use convert utf-8"in notepad++ + put somewhere @ top of files (i using php show php example):

<?php //Útf-8 ľščťžýáíéúäôň # script here ?> 

this way recognized utf-8 encoded file (without had time time problems detecting files utf-8 tho encoded that!)

hope helps bit did right (webpages encoded utf-8) , still having strange characters issues


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -