[V4RB 0000429]: db.name encoding problem

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Feb 16 18:19:15 CST 2005


On 2/16/05 5:17 PM, "vbt at paradigma.ukrcom.kherson.ua"
<vbt at paradigma.ukrcom.kherson.ua> wrote:

> 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.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina-beta mailing list