Re: special characters in 342137



On 25/07/06, Stephane Delcroix <stephane delcroix org> wrote:
Hi Cosme, but also hi Dotan, Bengt and all the other guys interested in
this...

>
> Last problem I remember is tags using non ASCII characters as you
> discussed recently.
>

After spending something like 2 hours on tracking this issue, I finally
found out !!!!

it's as simple as replacing (in src/XmpTagsMetadata.cs):

string stmt_pre_str = stmt.Predicate.ToString();
string stmt_obj_str = stmt.Object.ToString()

by:

string stmt_pre_str = stmt.Predicate.ToString();
string stmt_obj_str;
if (stmt.Object is SemWeb.Literal)
        stmt_obj_str = ((SemWeb.Literal)(stmt.Object)).Value;
else
        stmt_obj_str = stmt.Object.ToString();


Now, the XMP import patch can handle special (read utf8) characters !!!!
--
Stephane Delcroix
stephane delcroix org


Sorry for the late reply, Stephane. I have been unable to communicate
for the past month.

Good job tracking down the anti-utf8 culprit. I'm going to patch and
build this evening. Will update the list with my results. I very much
appreciate the work everybody puts into Fspot.

Dotan Cohen
http://gmail-com.com



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