Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
[.net] problem with unicode characters in path?

xschemer
Guest
Quote
2009-03-01 05:12:58

A user of one of my programs pointed out that playing the file with the following path doesn't work (the "..." is just a part of the path which doesn't cause the problem):

C:/Users/[...]/music/kaç&305;k kaç&305;k/file.mp3

I always get an "Illegal characters in path"-exception, so i tried to track down the problem and ended up at my own implementation of IFileFactory. But this can't really cause the problem:


...
public Stream openFile(string filename)
{
if (filename.StartsWith("http://"))
{
// Some Code for Streaming
}
else
{
return new FileStream(filename, FileMode.Open, FileAccess.Read);
}
}
...


I found out that the parameter filename contains a mallformed value: I pass the correct filename to Play2D and it reaches my FileFactory being malformed and shortened. I guess this happens when the filename is processed in the c++-part of the assembly which might not fully support unicode.

It's not that urgent but perhaps you know some kind of solution.
Thanks.

Yannick


niko
Moderator
Quote
2009-03-01 18:17:32

Oh, thanks, that's a bug. I don't think there is a workaround for this currently, going to fix this soon.


hattonjohn
Registered User
Quote
2009-04-17 06:40:13

This is a big deal for our users... we want to name sound files after the words they are recordings of... this nice plan falls down if the character is in some non-roman language. Thanks for looking into this, Niko.


BlastOffTek
Guest
Quote
2012-11-07 15:36:50

Uh, bumping this old topic,
are you guys still working on this? I'm confirming this bug with v1.4.0, with directory names containing characters from the Greek char set ("[...]\&902;&963;&954;&951;&963;&951; &954;&961;&943;&963;&949;&969;&962; &948;&953;&945;&955;&972;&947;&959;&965;\&902;&963;&954;&951;&963;&951; &954;&961;&943;&963;&949;&969;&962; &948;&953;&945;&955;&972;&947;&959;&965;\&942;&967;&959;&953;\1.mp3"), with visual basic express 2010. It actually kept me troubled for a whole day. :-(
FYI Windows media player COM plugin also experiences similar bug.


niko
Moderator
Quote
2012-11-08 07:26:45

Yes, but unfortunately, this requires a bit more work, and most users are not affected by this. Usually, if you are using your own file system, you can easily work around this by using short filenames instead (as described here http://www.ambiera.com/forum.php... for example)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact