Hi all,

i wrote this code, and my problem is that in the textbox
the values are "··· 123 test" and not "··· 123 test", so if I use special character like the middledot or others and than I try to copy in a Textbox I will find an additional "Â" for each special charater

anybody can help me?

the link to the page test

tnks very much!

<%@ Page Language="vb" Debug="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    Dim text2 As String
           text2 = "··· 123 test"
			TextBox2.Text = text2
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" dir="ltr" lang="it">
<head runat="server">
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>

<form id="form1" runat="server">
<div style="width: 796px;color:white;" lang="it-it">
    <asp:Button ID="Button1" runat="server" Text="click" />
    <asp:TextBox ID="TextBox2" runat="server" Visible="True" Width="540px" 
            TextMode="MultiLine"></asp:TextBox>
</div>

    <div style="width:60%" id="anteprima" runat="server">
    </div>

</form>

Recommended Answers

All 2 Replies

Hi all,

i create a file web.config

<configuration>
  <system.web>
    <globalization
      fileEncoding="utf-8"
      requestEncoding="utf-8"
      responseEncoding="utf-8"
      responseHeaderEncoding="UTF-8"
      culture="it-IT"
      uiCulture="it-IT" />
  </system.web>
</configuration>

now seem to work fine.

A.

Hi all,

i wrote this code, and my problem is that in the textbox
the values are "··· 123 test" and not "··· 123 test", so if I use special character like the middledot or others and than I try to copy in a Textbox I will find an additional "Â" for each special charater

anybody can help me?

the link to the page test

tnks very much!

<%@ Page Language="vb" Debug="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    Dim text2 As String
           text2 = "··· 123 test"
			TextBox2.Text = text2
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" dir="ltr" lang="it">
<head runat="server">
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>

<form id="form1" runat="server">
<div style="width: 796px;color:white;" lang="it-it">
    <asp:Button ID="Button1" runat="server" Text="click" />
    <asp:TextBox ID="TextBox2" runat="server" Visible="True" Width="540px" 
            TextMode="MultiLine"></asp:TextBox>
</div>

    <div style="width:60%" id="anteprima" runat="server">
    </div>

</form>

Hey this shouln't have to happen. Also i have tried and your code it workin fine. on button click i have written below code and it;s working fine. If i remove all other special character except dot then also it's workign fine.
Dim text2 As String
text2 = "... &&& ^^^@@@ >>>> 123 test"
TextBox1.Text = text2

I say try again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.