[V4RB 0000429]: db.name encoding problem

jda jda at his.com
Wed Feb 16 11:31:35 CST 2005


>  > Summary:                    db.name encoding problem
>>  Description:
>>  The db.name passed back to RB is not the same encoding as f.name. For
>>  example, I create a file called tést with db.create.
>>
>>  lenb(db.name) = 6 = teÄÅst
>>
>>  lenb(f.name) = 5 = t?©st
>>
>>  and the comparison f.name = db.name -> false
>>
>>  Oddly, they both appear as tést in the RB debugger, and the debugger
>>  thinks they are both UTF-8. But they are not -- I don't know what the
>>  db.name encoding is.
>>
>>  I called this minor, but it is major if you need to compare db names to
>>  file names, like I do.
>
>Well,
>
>1) I CANNOT store original encoding of FolderITem, and not going todo this.
>     because you can use db.Name one month later.
>
>2) Valentina returns strings always as UTF8.
>
>So it looks to me as "feature".
>You self must cast both strings to the same encoding.
>

You don't understand. Tell me what encoding 
Valentina uses. f.name is utf8. db.name is what? 
It is not utf8.

Jon


More information about the Valentina-beta mailing list