I am trying to convert character encoding using mb_convert_encoding(). However, the MARC-8 is not a supported encoding (mb_list_encodings()). Could any one help me to resolve this?

regards,

rcvanni

    I can't remember, but won't htmlentities() do the trick?

      using ...

      $data = htmlentities($data, ENT_COMPAT, mb_detect_encoding($data));

      i get the error ....

      Warning: htmlentities(): charset ASCII' not supported, assuming iso-8859-1 in ...
      Warning: htmlentities(): charset
      ASCII' not supported, assuming iso-8859-1 in ...
      Warning: htmlentities(): charset `ASCII' not supported, assuming iso-8859-1 in ...

      However, if i use the 'ASCII' parameter in mb_convert_encoding function ...

      $data = mb_convert_encoding($data, "UTF-8", "ASCII");

      the data is not correctly converted....

        Write a Reply...