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

  • Home
  • SEARCH
  • 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 8037719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:00:26+00:00 2026-06-05T03:00:26+00:00

I am having problems with encoding in ID3 tags. I query a webservice which

  • 0

I am having problems with encoding in ID3 tags. I query a webservice which returns back some XML including a node such as the one below:

<name>Blue Öyster Cult</name>

I am then using this information to update my ID3 tags. The problem is that the tag is updated as:

Blue Öyster Cult

I know this is an encoding issue, but I’m struggling to work out how to get it to work. My understanding is that ID3 tags need to be encoded as ISO-8859-1.

I wrote this code, but it makes no difference:

Encoding newEncoding = Encoding.GetEncoding("ISO-8859-1");
Encoding utf8 = Encoding.UTF8;
byte[] utfBytes = Encoding.UTF8.GetBytes(newArtistName);
byte[] asciBytes = Encoding.Convert(utf8, newEncoding, utfBytes);
string encodedArtistName = newEncoding.GetString(asciBytes);

Is this in the right direction or not?

Any advice much appreciated.

  • 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-06-05T03:00:27+00:00Added an answer on June 5, 2026 at 3:00 am

    The issue that I was having was actually prior to saving to the ID3 tags. The XML I was receiving was set to UTF-8, but the WebClient requesting the page was not. Adding the second line shown here resolved the problem.

    WebClient client = new WebClient();    
    client.Encoding = Encoding.UTF8;
    String htmlCode = client.DownloadString(requestURL);
    

    When the value is extracting from this XML, it has the correct encoding to be saved to the files ID3 tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been having some character encoding problems with twitter's text query string parameter. a)
I'm having some trouble with some character encoding causing some problems with a search
I'm having some big problems with encoding in Firefox when using AJAX and jQuery.
I have an app and having character encoding problems, the app is in turkish
Im having problems getting some text in a dropdown menu under each other. Any
I am having some problems getting some French text to convert to UTF8 so
I am having great problems solving this one: I have a mysql database encoding
Im having some major problems with an site im developing, basically whats happening is
I am having problems in writing some Chinese characters to http response. I set
I'm attempting to parse xml containing foreign letters (æøå specifically), however I'm having problems

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.