sql server - PHP encoding issue reading files - ISO-8859-1 & UTF-8 Conflict -


i have php file reads csv file im assuming in utf-8 - sent via api. i'm using fopen() read it.

the issue output returns :

iu?q?jl?.?/q?r??/)?j-.?))vh?/om?k-ni?t0?p?*ͩt0204jzԴ?h???x???@ d??k

i checked php5 config settings:

default utf-8 :/ ; php.net/default-charset ;default_charset = "utf-8"

i changed iso-8859-1 utf-8 below also:

[iconv] ;iconv.input_encoding = utf-8 ;iconv.internal_encoding = utf-8 ;iconv.output_encoding = utf-8 ;mssql.charset = "utf-8"

the output still same. suggestions or steps take solve issue.

i never opened files php but,

have used

$data = fopen($file); fgets($data); 

, too?


Comments