Hi all, I am a newbe and I need some help about character encoding. I use Visual Studio 2005 to develop my asp.net 2.0 web application. But I cannot see greek characters (which of course is the language I want to use for the site). The strange think is that when I use the ready-made controls provided by VS2005 (eg the Datagrid control) Greek characters appear just fine. But when I use response.write or just a label - anything besides ready controls I see wierd characters. I tried changing the encoding or the globalization settings but nothing worked. How can I fix this problem? I use utf-8 encoding right now both in web.config and my browser as well. Thanks for your help!
I think this is because the datagrid retrieves the Greek characters in the database, which support UTF-8, as opposed to Labels and Response.Write where it gets the characters straight from the page itself. If you are inserting international characters on the page itself, save the file as UTF-8 encoded. In Visual Studio 2005, do a Save As, then click on the drop-down arrow on the Save button to Save with Encoding. Aristotle DiscountASP.NET www.DiscountASP.NET
Dear Aristotle, thank you so much for your reply. I know it seems so easy but I looked everywhere and found nothing to solve the problem. Everything works fine right now, thank you very much.