Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

php characters

$
0
0
I am doing something with an API in another software, and I need to get the source of a html file and put it in a PHP file. I have everything working as intended, but I keep coming accross characters that PHP doesn't like, and it stops there. Is there some script I can use to catch all the characters that PHP doesn't like? This is part of how I am doing it now, and I keep adding this same line every time I come accross a character that makes the script stop. FYI $sHTML is the source code of the page.


[ autoit ]      
$sHTML = StringReplace($sHTML, '"', "'") $sHTML = StringReplace($sHTML, '“', "'") $sHTML = StringReplace($sHTML, '’', "'") $sHTML = StringReplace($sHTML, '”', "'") $sHTML = StringReplace($sHTML, 'à', "a") $sHTML = StringReplace($sHTML, 'â', "a") $sHTML = StringReplace($sHTML, 'ä', "a") $sHTML = StringReplace($sHTML, 'è', "e") $sHTML = StringReplace($sHTML, 'ê', "e") $sHTML = StringReplace($sHTML, 'é', "e") $sHTML = StringReplace($sHTML, 'ë', "e") $sHTML = StringReplace($sHTML, 'î', "i")

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>