0

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>
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by rohand
0

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.

Edited by andarin: n/a

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.