Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 742097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:42:31+00:00 2026-05-14T08:42:31+00:00

Further to this question I’ve got a supplementary problem. I’ve found a track with

  • 0

Further to this question I’ve got a supplementary problem.

I’ve found a track with an “É” in the title.

My code:

var playList = new StreamWriter(playlist, false, Encoding.UTF8);

–

private static void WriteUTF8(StreamWriter playList, string output)
{
    byte[] byteArray = Encoding.UTF8.GetBytes(output);
    foreach (byte b in byteArray)
    {
        playList.Write(Convert.ToChar(b));
    }
}

converts this to the following bytes:

195
137

which is being output as à followed by a square (which is an character that can’t be printed in the current font).

I’ve exported the same file to a playlist in Media Monkey at it writes the “É” as “É” – which I’m assuming is correct (as KennyTM pointed out).

My question is, how do I get the “‰” symbol output? Do I need to select a different font and if so which one?

UPDATE

People seem to be missing the point.

I can get the “É” written to the file using

playList.WriteLine("É");

that’s not the problem.

The problem is that Media Monkey requires the file to be in the following format:

#EXTINFUTF8:140,Yann Tiersen - Comptine D'Un Autre Été: L'Après Midi
#EXTINF:140,Yann Tiersen - Comptine D'Un Autre Été: L'Après Midi
#UTF8:04-Comptine D'Un Autre Été- L'Après Midi.mp3
04-Comptine D'Un Autre Été- L'Après Midi.mp3

Where all the “high-ascii” (for want of a better term) are written out as a pair of characters.

UPDATE 2

I should be getting c9 replaced by c3 89.

I was going to put what I’m actually getting, but in doing the tests for this I’ve managed to get a test program to output the text in the right format “as is”. So I need to do some more investigation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:42:32+00:00Added an answer on May 14, 2026 at 8:42 am

    StreamWriter already converts the characters you send it to UTF-8 — that’s its entire purpose. Throw WriteUTF8 away; it’s broken and useless.

    (WriteUTF8 is taking characters, converting them to UTF-8 bytes, converting each single byte to the character it maps to in the current code page, then encoding each of those characters in UTF-8. So in the best case you have a doubly-UTF-8-encoded string; in the worst, you’ve completely lost bytes that weren’t mapped in the system code page repertoire; especially bad for DBCS code pages.)

    The problem you’re having with Media Monkey may be just that it doesn’t support UTF-8 or Unicode filenames at all. Try asking it to play (and export a playlist for) files with characters that don’t fit in your system codepage, for example by renaming a file to αβγ.mp3.

    Edit:

    #EXTINFUTF8:140,Yann Tiersen - Comptine D'Un Autre Été: L'Après Midi
    #EXTINF:140,Yann Tiersen - Comptine D'Un Autre Été: L'Après Midi
    #UTF8:04-Comptine D'Un Autre Été- L'Après Midi.mp3
    04-Comptine D'Un Autre Été- L'Après Midi.mp3
    

    OK, what you’ve got there is a mixture of encodings in the same file: it’s no wonder text editors are going to have trouble opening it. The uncommented and #EXTINF lines are in the system default code page, and are present to support media players that can’t read Unicode filenames. Any filename characters not present in the system code page (eg. Greek as above, on a Western Windows install) will be mangled and unplayable for anything that doesn’t know about the #UTF8 (and #EXTINFUTF8 for the description) lines.

    So if this is your target format, you’ll need to grab two encodings and use each in turn, something like:

    private static void writePlaylistEntry(Stream playlist, string filename, int length) {
        Encoding utf8= new UTF8Encoding(false);
        Encoding ansi= Encoding.Default;
        playlist.Write(utf8.GetBytes("#EXTINFUTF8:"+length+","+filename+"\n"));
        playlist.Write(ansi.GetBytes("#EXTINF:"+length+","+filename+"\n"));
        playlist.Write(utf8.GetBytes("#UTF8:"+filename+"\n"));
        playlist.Write(ansi.GetBytes(filename+"\n"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.