Back to product page

UnicodeName property


Holds UTF8 encoded name of the file or directory.

Type

A String value

Syntax

  • Basic
object.UnicodeName [= value]
The UnicodeName(object,value) syntax has these parts:
objectAn expression evaluating to an object of type DirItem.
valueA String value.

Remarks

Unlike Name property which uses your current codepage to show you file/folder name, UnicodeName property holds it in UTF8 encoding. This allows you to see non-english names properly. However, wodFtpDLX will still use Name property to reference this file/folder directly, since that approach is much safer. When local codepage doesn't have appropriate locale installed on local PC, it is possible for unicode names to contain ??? characters as replacement. Such characters in name would cause wodFtpDLX to fail accessing remote file/folder.

You should use this value when showing item on the screen. When item is referenced, it is suggested to use Name property instead.

Just a reminder - you must call ListDir to get directory listing, and then access files through Ftp.DirItems property in order for this property to be available!

Platforms

Windows