Click here to Skip to main content
14,160,515 members
Rate this:
 
Please Sign up or sign in to vote.
Hello I want to know how to write arabic in textbox asp.net using VB.net, also i need sql database column accept arabic language.

What I have tried:

ello I want to know how to write arabic in textbox asp.net using VB.net, also i need sql database column accept arabic language.  
Posted
Updated 1-Sep-18 23:57pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You have to use Unicode which is used by .NET already. For the web page you have to configure the encoding in the web.config file like:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
See also How to: Select an Encoding for ASP.NET Web Page Globalization[^].

With MS T-SQL you have to use the nchar and nvarchar (Transact-SQL) | Microsoft Docs[^] types to store Unicode text. For other database engines see their documentation.
   
Comments
Abdifatah supparka 17-Sep-18 13:52pm
   
thanks ,for database it working but in browser not working it display ????.
Jochen Arndt 18-Sep-18 4:05am
   
Then your web page is not properly configured for Unicode. When viewing the HTML source of the page in a browser (with Firefox for example use Ctrl+U), there should be a
<meta charset="utf-8">
or
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
tag in the header.

If that is present, there may be also wrong conversions somewhere in your server code.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190518.1 | Last Updated 2 Sep 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100