Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Wierd UTF-8 String Problem



Hi tluggers,

Can anyone help with a small problem?

I was putting a post-commit hook into a SVN repository server, to
capture a log messages, but SVN puts out this weird looking string when
non ASCII strings are included.

Example:

?\227?\130?\183?\227?\130?\185?\227?\131?\134?\227?\131?\160?\229?\174?\159?\232?\163?\133/trunk/src/

It's obviously some form of an UTF-8 string, and ASCII characters are
obviously passed straight through.  Before I start hacking something
together to turn this string into the actual bytes I want, I wanted to
see if anyone was familiar with this notation and if there are any tools
known to handle it?

My main hunch at the moment is that this is purely an internal svn notation so I might need a script to convert this back to bytes and then to a string. If so then a PHP script would be ideal. Sadly I haven't used PHP except for some bug fixing. Any expert PHP guru on list that can dot it down in a minute?

Regards,

BAB



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links