Can I put special characters like ® in a .resx file?

I created the ProductResources.resx file. The name and value fields contain a character. This is R with a circle around it. This is a trademark. Obviously, this should be there. The resource file itself gives a red circle with a question mark inside it. Please, help.

+3
source share
2 answers

here is what you should do:

  • add app_local_resources folder (right click on your project -> add asp.net folder)
  • specify the resource folder as follows: PageName.aspx.resx
  • add the name and property of the button (for example, Button1.Text) in the resource file name field
  • copy ( ,
  • , :

     asp:Button ID="Button1" runat="server" Text="" onclick="Button1_Click" meta:resourcekey="Button1" 
    

alt text http://img7.imageshack.us/img7/2108/59469768.jpg

, , :)

0

, XML- resx, , , :

   ®      (iso-8859-1  or utf-8)
   ™     (unicode)
+2

Source: https://habr.com/ru/post/1717886/


All Articles