CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 12/20/2006 2:05:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 61 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
didasoft
Asp.Net User
problem on utf-8 file format in vs200512/20/2006 2:05:04 AM

0/0

I have some problem on .aspx utf-8 file format.

For example :

my OS is windows server 2003 R2 chinese version, my vs2005 is english version.

by default , default.aspx is saved as "Chinese Simplified (GB2312) - Codepage 936", I want to save my .aspx file into "utf-8".

so i use "Advanced Save Options" save my file into "Unicode (UTF-8 without signature ) - Codepage 65001".

The strange things happened.

I have some chinese characters in my .aspx file, when i re-open the .aspx file, i cannot see the real chinese characters.

Is it a vs2005 bug or how can i resolve the problem?

BTW, if .aspx file is saved into "Unicode (UTF-8 with signature ) - Codepage 65001", there is no problem.

 

Mikhail Arkhipo
Asp.Net User
Re: problem on utf-8 file format in vs200512/20/2006 5:17:47 AM

0/0

Try saving file in UTF-8 with signature - this is much more reliable.
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
Mikhail Arkhipo
Asp.Net User
Re: problem on utf-8 file format in vs200512/20/2006 5:19:10 AM

0/0

If file has no signature, VS and ASP.NET have to guess the encoding. Nowhere in the file it says 'this is UTF-8'. Signature is a clear indication of the file format.
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
stmarti
Asp.Net User
Re: problem on utf-8 file format in vs200512/20/2006 1:24:16 PM

0/0

I've jumped this thread some way, but I share with you my experiences about "UTF 8 with signature" vs. "UTF-8 without signature":

I recommend visit this site for unicode infomation. For a faq about utf-8 I recommend this.

A small excerpt from the faq (bold text is by me):

--- 

Q: Can a UTF-8 data stream contain the BOM character (in UTF-8 form)? If yes, then can I still assume the remaining UTF-8 bytes are in big-endian order?

A: Yes, UTF-8 can contain a BOM. However, it makes no difference as to the endianness of the byte stream. UTF-8 always has the same byte order. An initial BOM is only used as a signature ? an indication that an otherwise unmarked text file is in UTF-8. Note that some recipients of UTF-8 encoded data do not expect a BOM. Where UTF-8 is used transparently in 8-bit environments, the use of a BOM will interfere with any protocol or file format that expects specific ASCII characters at the beginning, such as the use of "#!" of at the beginning of Unix shell scripts.

---

In the past some times I got strange characters on the top of my plain html pages (UTF-8 with signature): that was the signature which was displayed by the browser! (The answer for this is the bold text Smile ) For aspx pages I've never seen that, so it is probably safe to go with UTF-8 with signature.


 


4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Pro Visual Studio 2005 Team System Authors: Jeff Levinson, David Nelson, Pages: 515, Published: 2006
Professional Visual Studio 2005 Team System Authors: Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad, Darren Jefford, Pages: 700, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Real World SharePoint 2007: Indispensable Experiences from 16 MOSS and WSS MVPs Authors: Robert Bogue, Adam Buenz, Scot Hillier, Andrew Connell, Stacy Draper, Luis Du Solier Grinda, Todd Klindt, Jason Medero, Dustin Miller, Shane Perran, Joris Poelmans, Heather Solomon, Nick Swan, Jan Tielens, Mike Walsh, Shane Young, Pages: 504, Published: 2007
Visual Basic 2005 Programmer's Reference Authors: Rod Stephens, Pages: 1022, Published: 2005
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Programming ASP.NET AJAX Authors: Christian Wenz, Pages: 454, Published: 2007

Web:
problem on utf-8 file format in vs2005
XmlDocument LoadXml()- problem with utf8 xml there is no problem. For some reason, the LoadXml() function cannot > handle the utf8 file format! Of course my xml is declared as ...
RyanErwin.com » Valid UTF-8 data (hex:) followed by invalid UTF-8 ... I’ve juste had this problem. I force UTF-8 encode to all the last file i change and ... cd C:\Projects\Visual Studio 2005\Projects\TortoiseRedminePlugin ...
The format of the file [DLL] is invalid - Application Development ... This is a discussion on The format of the file [DLL] is invalid within the ... This wasn't a problem at first. I created a DLL in VS2005 ...
windowsce platbuilder Problem analyzing Dr Watson dump on CE 6.0 image Utf-8?B?V2VybmVy?= wrote in I don't know if the file format has changed. Did you try to open it from File\Open\Project/solution. ...
Scott Hanselman's Computer Zen - The Importance of being UTF-8 Sep 29, 2006 ... Changing to UTF-8 fixed Kevin's problem. ... It's not that VS2005 is 'changing' the file to ASCII/ANSI, it's that it doesn't have a way to ...
Install new module Error - Extend It! ( Programming in VS2005 ... Hi All, I created a tasklist module but now I got problem with installation on my company ..... UTF-8 is recommended for complex languages ...
VS2005 : how do you set DEFAULT encoding of cs files to UTF-8 ... Mar 6, 2006 ... when I add a new aspx page, the aspx file is created in UTF-8, but the ... is that the only case in which VS2005 does *not* use UTF-8 as ...
FIX: Error message when you record a Web test in Visual Studio ... Fixes a problem in which an error message may appear in the "WebBrowser" tab or in the ... pair: Content-Type: text/html;charset=UTF-8;charset=UTF-8. ...
Visual Studio 2005/2008 Interoperability Product Name, Product Version, File Format. Visual Studio .Net, v7.0, 7. Visual Studio .Net 2003, v7.1, 8. Visual Studio 2005, v8.0, 9 ...




Search This Site:










style sheet & masterpage reference errors

background problems with masterpage

treeview problem

menu, treeview does not populate from dynamically generated xml files

formatting tree view control in asp.net 2.0

where is master.page.header.metadata?

reportviewer control inside the contentplaceholder - not showing up

dynamically include onload script block on master

accessing images from theme directory and itemtemplate in skin

websitemap xml file, multiple key value pairs in url querystring not possible?

sitemapprovider and multiple sitemaps

masterpage getelementbyid

page.controls don't exist in page from masterpage

help on order of execution.....

make whole menu item area clickable?

master page and java script

setting the theme for a masterpage

how to change dynamically a sitemapnode of web.sitemap?

using themes - how to.

how to organize tags in the head when using masterpage and theme

masterpages - frameworkinitialize() no suitable method found to override

dynamic login info via master pages

asp menu question - images and datasource

varible within title tag?

changing themes programatically from master page

how do i set master.page image button

treeview control does not display levels properly

previouspage of masterpage alway null

problem: masterpage + external css file

css files are references multiple times in the head tag

  Privacy | Contact Us
All Times Are GMT