Jump to content

_Winamp_GetCurrentTrackFilePath() returns '?' characters when this file path has Korean or other characters (then english) in it.

Recommended Posts

Hi I recently enjoyed using Winamp Automation Library from this forum- '?do=embed' frameborder='0' data-embedContent>>, but when I ConsoleWrite(_Winamp_GetCurrentTrackFilePath()) or GuictrlsetData(GUICtrlCreateLabel ( ""&_WinampGetTitle(),...)) it displays fine for english named files/ file path but not for those which has Korean or other languages between the file path or file names. How to avoid that '?' and return actual file path/file name with that language used?

Edited by peter1175
Link to post
Share on other sites

the console (cmd.exe) uses ANSI by default, code page 866, 862 etc. depends on the languages installed in Windows.

you can either force Unicode to the console, which requires registry manipulation (see here: (http://stackoverflow.com/questions/14109024/how-to-make-unicode-charset-in-cmd-exe-by-default),

or export the data to a unicode-supported platform, such as write it to a file.

Link to post
Share on other sites

I'm not sure even using the console is the problem. Your using _Winamp_GetCurrentTrackFilePath() with english. I don't think the authors of that library ever put in support for korean or other languages.

Could be wrong, but just my 2 cents. ;)

Snips & Scripts

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...