Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2004, 04:37 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Edit with word. Codepage/encoding problem??

I have a problem with characters above 127 when editing a page with word.

When I redirect to a page called test.aspx which looks like this:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test.aspx.vb" Inherits="WebApplication2.test"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>test</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
         <meta name="ProgId" content="Word.Document">

</head>
<body MS_POSITIONING="GridLayout">

    <form id="Form1" method="post" runat="server">

    </form>
        Ã¦Ã¸Ã¥
</body>
</html>


From another page page I redirect to the test.aspx.
When I do like this:
response.redirect("test.aspx")
the "Edit with word" function works fine.

When I do like this:
response.redirect("test.aspx?a=1")
the browser looks fine with 'æøå', but when I press Edit With WOrd the characters are interpreted different by word.

The funny thing is that, when I save as a HTM file from word. Open the file with Notepad and save it. Open it againin word the 'æøå' is written correctly.

How come.

Best regards
Peter Kofod
 
Old April 29th, 2004, 02:57 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it works when you in web.config changes:
encoding from:
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
to:
    <globalization requestEncoding="windows-1252" responseEncoding="windows-1252" />

Quote:
quote:Originally posted by pskofod
 I have a problem with characters above 127 when editing a page with word.

When I redirect to a page called test.aspx which looks like this:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test.aspx.vb" Inherits="WebApplication2.test"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>test</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
         <meta name="ProgId" content="Word.Document">

</head>
<body MS_POSITIONING="GridLayout">

    <form id="Form1" method="post" runat="server">

    </form>
        Ã¦Ã¸Ã¥
</body>
</html>


From another page page I redirect to the test.aspx.
When I do like this:
response.redirect("test.aspx")
the "Edit with word" function works fine.

When I do like this:
response.redirect("test.aspx?a=1")
the browser looks fine with 'æøå', but when I press Edit With WOrd the characters are interpreted different by word.

The funny thing is that, when I save as a HTM file from word. Open the file with Notepad and save it. Open it againin word the 'æøå' is written correctly.

How come.

Best regards
Peter Kofod








Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoding problem. Neal XML 0 April 4th, 2006 06:49 AM
Edit-add new entry to an acces table from word matpen Access 4 January 5th, 2006 06:30 PM
JSP encoding problem! recepkocur Pro JSP 0 December 3rd, 2004 02:43 AM
JSP encoding problem recepkocur JSP Basics 0 December 1st, 2004 11:34 AM
Codepage Problem? birdcage Classic ASP XML 2 October 21st, 2003 06:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.