Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

UTF8Encoding GetString


  • Please log in to reply
3 replies to this topic

#1 Mercer

Mercer

    Member

  • Members
  • PipPip
  • 17 posts

Posted 16 January 2012 - 12:49 AM

I am trying to perform the following, but System.Text.UTF8Encoding.GetString is not supported in the Microframework. UTF8Encoding val = new UTF8Encoding(); return val.GetString(bfr, offset, length); Is there another way to accomplish this task?

#2 DanA

DanA

    Member

  • Members
  • PipPip
  • 26 posts

Posted 17 January 2012 - 03:51 AM

Hi, Can you use GetBytes or GetChars? Dan

#3 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 17 January 2012 - 06:01 AM

return new String(Encoding.UTF8.GetChars(bfr));


#4 Mercer

Mercer

    Member

  • Members
  • PipPip
  • 17 posts

Posted 28 April 2012 - 04:29 PM

return new String(Encoding.UTF8.GetChars(bfr));



Thank you!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.