欧元(html特殊字符)签到selenium / phpunit?

I work on Windows 7, with phpunit & selenium & Firefox.

I have this code:

$value1 = $this->getText("//div[@id= bla bla");
$this->assertEquals($value1, "\u20AC 1,12");

where \u20AC should be the Euro sign. I've also tried €, €, €, but phpunit keeps giving an error, expecting some impossible character combination.

Printing $value1 gives me the same weird combination.

Anybody knows of a way to use, check on HTML special characters or which charset I should/could use?

查看全部
doufu8887
doufu8887
2011/04/21 07:40
  • selenium
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复