rejetto forum

Addin folder or file (Thai language) to HFS but their name is turned out to ????

0 Members and 1 Guest are viewing this topic.

Offline nutarun

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
I add folder or file (Thai language) to HFS but their name is turned out to ? ? ? ?

What am I supposed to do or check ?

My server also install Thai font already.

Thank you


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
Firstly, your Windows system language is English, which means that the "code page" is maybe also English-only.
As HFS 2.3 is non-Unicode, you should change the system code page to Thai (or relative) -compatible, then the problem may be solved.

Here's a related link, all answers inside are helpful.

After changing, please re-launch Windows & HFS and put the folders again.

( many terminologies here  ::) search the web for more information )

Then, if above didn't work, may try HFS version 2.4, which supports Unicode. Find its development/download link in "Beta" sub-board.


Last note: HFS 2.3e is an insecure & vulnerable version. Switch to 2.3m or above if possible ;)
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
As HFS 2.3 is non-Unicode, you should change the system code page to Thai (or relative) -compatible, then the problem may be solved.
This is true, HFS 2.3 is not Unicode, so changing system code page will not solve this. The only way is using HFS 2.4, but before doing that, please backup any *.ini, *.vfs and *.tpl files you may have along your HFS.exe executable (if you update to version 2.4, then you can't go back to v2.3, unless you have a backup).
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 203
  • Computer-brain boy
    • View Profile
so changing system code page will not solve this.

Yes, this only works with "common" encodings, such as Chinese & Japanese, but not Thai.
Use HFS 2.4 if possible ;)



In my test, after changing code page to Thai, a folder named "อรุณสวัสดิ์" can be put into HFS 2.3, but the URL Encode result (which should to UTF-8) is incorrect.

According to further test, these are the conversion steps of HFS 2.3 (or Delphi without Unicode):
- Windows think this program cannot understand UTF-16 (the filename encoding of NTFS) and converts that to ANSI Thai "code page": TIS-620
- HFS 2.3 regarded this TIS-620 raw data as GB2312 encoded
- Then convert the raw data to UTF-8 with GB2312 map
which will succeed the action but get wrong data :P

So this problem cannot be solved in 2.3 unless we have a hack in the old Delphi, add the TIS-620-to-UTF-8 map, be sure it will be correctly used, then re-compile...
Too complex then just upgrade to HFS 2.4 :D

Ps. encoding test can be done with Notepad++ on Windows, or any good editor on GNU/Linux. Also the command-line utility "hexdump" can show you the true raw data of a file.
"Computation is not forbidden magic."
Takeback Template | PHFS


Offline nutarun

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Thank you both of you.  :)

I try 2.4.0 RC6 and it work like a charm. :D

I thought 2.4 is still Beta version and not ready to use it.