Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    when i try to save file it always has me replace my entities w/ code.. is it okay change the my file format to UTF-8 encoding? instead of western latin?

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    You should already be using ISO 8859-1 or UTF-8.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    
    <head>
     <title>Some title</title>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     ......
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i have
    charset=iso-8859-1

    but in dreamwevaer it keeps saying that i cant have certain entities and i have to replace w/ a small code...
    unless i go in to page properties and change off of western latin.. to UTF-8 or something


    guess i need to change default settings off of that western latin

    thanks

  5. #4
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    I don't know ... I only use DW in code view so I don't get these messages!?
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  6. #5
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    i only use it in code view too.... its when i go to save.. i have no clue to be honest on how to use dw.. i just used it.. not sure why.. i probably would be better off using notepad

    oh! i remember why i use it.. b/c of the preivew button..

  7. #6
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    NEVER use the preview button. Use the real deal ... the browsers
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  8. #7
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    k thx

  9. #8
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    The problem is not your character set. The character set is simply used to determine output.

    The problem is your file contains unicode data. Unicode is stored as MBCS data (2+ bytes per character). HTML files are saved by default as ISO-8859-1, a SBCS data format (1 byte per character). So when you try to save with unicode data, it raises an exception.

    The cause is probably that you're cutting and pasting text from Microsoft Word or PowerPoint.

    MS Office replaces quotes (") with their unicode open/close quote characters, and ticks (') with unicode apostrophes, and continuance (...) with a unicode character.

    I really hate pasting from MS Office into a SBCS file. It can be a real pain in the arse to find/replace all the unicode replacements. There's probably a switch in Office to turn it off, but I don't run into the problem often enough to care to figure it out.

    If you save the file with a UTF-8 character set, it will solve your problem (at least on the browser end), but I know that some editors are incapable of reading unicode data, so it's not the optimal solution.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com