views:

16

answers:

1

My application require 2 different asia language support: Chinese and Tamil.
It should be able to cater for change without compiling, something like java's resource bundle. In this case, if I input unicode on a external file and get silverlight to read as string, will silverlight be able to parse it correctly?

Or I can use the chinese/ tamil characters directly in the external file, but I'm not sure how to retrieve these characters in code.

Anyway these language will be shown on the same screen, so I don't think localization will help.

+1  A: 

Just place the content in Xml (probably Xaml Resource dictionary) using the default UTF-8 encoding.

AnthonyWJones
Does it mean that I just directly input like "汉语" into xml then store it into Encoding?
C_Rance
@C_Rance: "Encoding" refers to how language characters are mapped to the numerical values stored in a file. When you save a file it will use an "Encoding". When saving an Xml or Xaml file in Visual Studio it defaults to using the UTF-8 encoding. UTF-8 can represent all the characters in the Unicode character set including chinese and tamil characters. So yes can just type them in directly.
AnthonyWJones
the Encoding I meant was C#'s Encoding data type. Anyway I got u, thanks.
C_Rance