Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


Used the following code:
Encoding.GetEncoding(936); on compact framework

936 is code page for chinese language.

Result: Getting the Platform not supported exception.

Can you suggest some sample for performing encoding in different languages like
simplified chinese , japanese, italian anad korean etc.
Posted
Comments
Sergey Alexandrovich Kryukov 31-Jul-14 1:48am    
Encoding? Does anything at all in your program work?
Is it System.NotSupportedException? System.PlatformNotSupportedException?
Always indicate exact exception type, not just message.
—SA

1 solution

Please see my comment to the question. A code sample won't help you; especially you did not explain what you are trying to do. If something is not supported on some platform, it is just not supported; you only can 1) change this platform; 2) do something different on that platform.

What really could help you is looking critically at your own questions. You need to explain your goals, formulate what you want to do precisely, provide precise exception information, and so on.

You general problem is: you are probably trying to use obsolete (non-UTF) encoding on a Unicode-based platform, which also is not supported on the platform you are using. You should also understand that there is no such thing as miracle. :-)

Please see exception information on the MSDN help page on the method:
http://msdn.microsoft.com/en-us/library/wzsz3bk3%28v=vs.110%29.aspx[^].
See also: http://msdn.microsoft.com/en-us/library/system.notsupportedexception%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900