Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")
Do I have to make any settings in simpletest about encoding?
I tried having umlauts as strings, and umlauts as html entities...in both cases simpletest does not understand the text?
Can someone confirm this...or I am doing something wrong
sweatje wrote:How do regular pcre_match() expressions work with your UTF8 characters? IIRC, isn't this supposed to be a major focus of the PHP6 effort?
//parser.php ~line 699
function decodeHtml($html) {
static $translations;
if (! isset($translations)) {
$translations = array_flip(get_html_translation_table(HTML_ENTITIES));
}
return strtr($html, $translations);
}
//I guess if something here is changed a valid compare using assertText() will be possible.
Last edited by jmut on Fri Aug 25, 2006 5:12 am, edited 1 time in total.
Ambush Commander wrote:Encode your files in UTF-8 and put the actual umlauts in source.
Yes, that works...it is just that I don't have control over the html
Thanks anyway....using preg_match seems reasonable enough. So this problem I consider closed.