php base64 encode appears unexpected character -
i have xml string in php this.
<?xml version="1.0" encoding="utf-8"?><payplatrequestparameter><request_header>......
and convert base64 form by
base64_encode()
however, client after decoding found xml looks like
<?xml version="1.0" encoding="utf-8"?><payplatrequestparameter?<request_header>.......
so return error code me.
i have try use iconv convert xml str utf-16 utf-8, set notepad++'s encoding utf-8 without bom. it's cant help. cant ask client change code.
ok solved question.
that's not xml or base64 question curl....
it seems con't put on string variable, put on array map , problem sloved
Comments
Post a Comment