Converting string to a Unicode literal?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eeasss
    New Member
    • Sep 2007
    • 6

    Converting string to a Unicode literal?

    Hello there, is there a class or method that does this conversion or i have to implement my own method? For exeample if i have the C letter the output should be \u0043.
  • furuknap
    New Member
    • Jul 2008
    • 2

    #2
    The answer is sort of 'it depends'. What do you input, what do you output, what system, etc.

    I've bookmarked this some time ago:


    Specifically, look at the section called 'What does .NET provide' which talks a bit about the System.Text.Enc oding class. I think that is what you want, but your particular implementation may vary.

    .b

    Comment

    Working...