Jump to content

Character Encoding and strpos()


iyacp

Recommended Posts

Hi,
I'm trying to locate a string within a HTML document. However, I'm facing with encoding problems. Due to this problems strpos () function fails.
I'm directly reading content of HTML page using fsockopen() and fread(). Encoding of HTML document is iso-8859-9(turkish) and encoding of the string I want to locate is windows-1254(again turkish). How can I solve this problem? Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/16452-character-encoding-and-strpos/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.