Skip to main content
January 28, 2008
Question

Can not stream chinese file name mp3

  • January 28, 2008
  • 1 reply
  • 211 views
when i use netStream.play("mp3:信自己");
the FMS 2 said that streams not found,
but i use netStream.play("id3:信自己"),
the streaming success.
    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    January 28, 2008
    Thanks for reporting this. This is a known issue. There is actually 2 bugs here, one of which is fixed in the final FMS 3.0 release. But one will be fixed in the first hotfix.

    Bug #1 - Using the File I/O module was not possible with ID3 module. This is fixed.

    Bug #2 - This is what you have found, that multi-byte characters are not working correctly. Unfortunately, because Bug #1 was fixed, ID3 is now also affected by this bug. The problem is trying to call file open() using a UTF-8 encoded multi-byte string.

    The work around is to create a custom file i/o adaptor that converts a UTF8 file name/path either to wchar_t or to the appropriate multi-byte encoding for the locale you are running in, and call the appropriate file functions.