PHP, convert UTF-8 to ASCII 8-bit

I am trying to convert a string from UTF-8 to ASCII 8-bit using a function iconv. The line is intended for import into accounting software (some basic instructions are processed in accordance with SIE standards).

What am I launching now:

iconv("UTF-8", "ASCII", $this->_output)

This works for accounting software No. 1, but software No. 2 complains about the encoding. A specified coding standard: IBM PC 8-bit extended ASCII (Codepage 437).

My question is: which version of ASCII is PHP encoding my string, and unless otherwise specified, how can I encode the string in accordance with the standard specification?

+5
source share
1 answer

try this for software # 2

iconv("UTF-8", "CP437", $this->_output);

ASCII - , ASCII. , , ASCII, Extended ASCII - Codepage 437

.

+9

All Articles