countdrac Posted November 15, 2007 Share Posted November 15, 2007 hi i need to check a file to see if its encoded in windows-1250 so ican convert if it is... i cant just convert the files that are in the correct encoding because this adds some strange characters where there shouldnt be does anyone know how i can check? ie if (windows1250($doc)) { iconv(...); } how do i do that check? Link to comment https://forums.phpfreaks.com/topic/77512-solved-check-if-a-file-is-in-windows-1250/ Share on other sites More sharing options...
Daniel0 Posted November 15, 2007 Share Posted November 15, 2007 mb_detect_encoding() can do that. Link to comment https://forums.phpfreaks.com/topic/77512-solved-check-if-a-file-is-in-windows-1250/#findComment-392358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.