Lifestyle, hobbies, work, rage…
Genpuid troubles
Since there is no managed or open source way to get a PUID for MusicBrainz (Thank you, thank you MusicIP…), you have to call it as an external process. However, since Windows makes all the console-based executables have a character set of SBCSCodePageEncoding, accents get messed up.
After several hours of smashing my head against the wall and venting on GTalk w/ scottp, I finally got it to work:
Encoding.UTF8.GetString(ProcessObj.StandardOutput.CurrentEncoding.GetBytes(“yadda yadda”));
And now it all works. Yay! iBrainz is almost finished…
| Print article | This entry was posted by Boris on January 2, 2008 at 6:08 pm, and is filed under C#, Programming. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |