Sign in to follow this  
Followers 0
peter1175

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

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


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.

Share this post


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

 

Share this post


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
Sign in to follow this  
Followers 0