Advertisement
Guest User

Untitled

a guest
Jun 1st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. string Nazev="TriŔko Chevak";
  2.  
  3. string Nazev="Tričko Chevak";
  4.  
  5. Encoding win = Encoding.GetEncoding(1250);
  6. Encoding z = Encoding.Default;
  7. byte[] zBytes = z.GetBytes(Nazev);
  8. byte[] isoBytes = Encoding.Convert(z, win, zBytes);
  9. Nazev = win.GetString(isoBytes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement