Well anyways please let me handle the problems with decoding. I just
want to know if there is a way that I could traverse through all the
elements of the simplexmlobject and still keep the same structure of
the array. What I mean is
[Advanced Virtualization Technologies in Workstation 6-20080320 1604]
=> SimpleXMLElement Object
(
[recordingID] => 932467
[hostWebExID] => marketingprograms
[name] => Title
[createTime] => 03/20/2008 09:04:42
[timeZoneID] => 4
[size] => 49.441048
[recordingType] => 0
[duration] => 3218
)
Go through all the elements of the object and do some encoding and get
back the same array structure.
In raw terms I need to know the procedure that does this and still
keep the same structure of the array.
[Advanced Virtualization Technologies in Workstation 6-20080320 1604]
=> SimpleXMLElement Object
(
[recordingID] => utf8_decode(932467)
[hostWebExID] => utf8_decode(marketingprograms)
[name] => utf8_decode(Title)
[createTime] => utf8_decode(03/20/2008 09:04:42)
[timeZoneID] => utf8_decode(4)
[size] => utf8_decode(49.441048)
[recordingType] => utf8_decode(0)
[duration] => utf8_decode(3218)
)
On Mon, Mar 24, 2008 at 10:10 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 10:00 AM -0700 3/24/08, VamVan wrote:
> >I cannot do that. because Simple xml element retrieves everything in
> >UTF8. I need to decode it to latin1 for comparison with another array.
>
> Unless there is something here that I don't understand, there is no
> decoding UTF-8 to Latin1
>
> Latin1 is a subset of UTF-8 -- what you find (characters) in Latin 1
> is the same as in UTF-8.
>
> If you have a code point (character) that lies outside of the range
> of Latin 1, then there is no solution.
>
> Cheers,
>
> tedd
>
>
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
> --
>
>
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php