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 6056513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:23:04+00:00 2026-05-23T08:23:04+00:00

Is there a built in .NET function or an easy way to convert from:

  • 0

Is there a built in .NET function or an easy way to convert from:

"01234"

to:

"\u2070\u00B9\u00B2\u00B3\u2074"

Note that superscript 1, 2 and 3 are not in the range \u2070-\u209F but \u0080-\u00FF.

  • 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-23T08:23:05+00:00Added an answer on May 23, 2026 at 8:23 am

    EDIT: I hadn’t noticed that the superscript characters weren’t as simple as \u2070–\u2079. You probably want to set up a mapping between characters. If you only need digits, you could just index into a string fairly easily:

    const string SuperscriptDigits = 
        "\u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079";
    

    Then using LINQ:

    string superscript = new string(text.Select(x => SuperscriptDigits[x - '0'])
                                        .ToArray());
    

    Or without:

    char[] chars = text.ToArray();
    for (int i = 0; i < chars.Length; i++)
    {
        chars[i] = SuperscriptDigits[chars[i] - '0'];
    }
    string superscript = new string(chars);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a built in VB.NET function to format a number as an Ordinal
Is there a built in function in .NET 2.0 that will take two arrays
Is there a built in function equivalent to .NET's Guid.NewGuid(); in Cocoa? My desire
Is there any built in functionality that enables downloading files from FTP in .NET?
Is there a built in .NET function to get a unique filename if a
Is there a built-in function in VB.NET which would take an array of strings
Is there a built in (to the .net framework) class or function to resolve
Is there a built in function in C# / .net that will take a
Are there any built-in functions in .Net that allow to capitalize strings, or handling
Is there a class or set of functions built into the .NET Framework (3.5+)

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.