Active Record not showing the result UTF-8 |
[eluser]laytone[/eluser]
And this.. Addition to QLeap's post: SimpleXML will return a reference to an object containing the node value and you can't use references in session variables as there is no feasible way to restore a reference to another variable. This won't work too: $val=$this->xml->node->attributes()->name; echo $array[$val]; // will cause a warning because of the wrong index type. You have to convert/cast to a String first: echo $array[(string)$val]; This will work as expected, because converting will call the __toString() method. Therefor echo works too: echo $val; // will display the name Hell, here is a link .. it appears we are not the first to come across the problem! http://php.net/manual/en/book.simplexml.php |
Messages In This Thread |
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 11:41 AM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:19 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:33 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:44 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:49 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 01:55 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 02:15 PM
Active Record not showing the result UTF-8 - by El Forum - 01-19-2010, 04:39 PM
|