Solved

Unable to view web pages in Dreamweaver - turned to gobbledygook!

Posted on 2004-09-14
12
188 Views
Last Modified: 2010-04-25
Hi all,

I've just taken over as the web developer for a company called Fujikura and I need to make some changes to the external website, www.fujikura.co.uk

I have downloaded the files from our ISP to my local machine and created a new site in Dreamweaver and attempted to open the files but none of them can be viewed in Dreamweaver - they all come out as gobbledygook, pages and pages of squares and strange symbols... They open fine in IE and I can browse the site, and I can also view the HTML using notepad, but Dreamweaver will not read them.

Has anyone got any ideas why this might be? I don't want to have to edit all these files in notepad. The site was originally created in Dreamweaver so I have no idea what is going on!

Thanks
0
Comment
Question by:gjirvine3000
  • 3
  • 3
  • 2
  • +3
12 Comments
 
LVL 5

Expert Comment

by:webtrans
ID: 12053084
set the default language in Dreamweaver to english
0
 

Author Comment

by:gjirvine3000
ID: 12053092

Thanks for suggestion. How do I do this? There is nothing in dreamweaver help about it.

Thanks
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12053224
Edit >> Preferences >> Encoding

I think there might be a problem with encoding...
0
 

Author Comment

by:gjirvine3000
ID: 12053795
Hi

There is no setting for languages under Edit > Preferences

The closest thing I can find is under Edit > Preferences > New Document you can set the Deafult encoding to Western European, and ask Dreamweaver to "Use when opening existing files that don't specify and encoding"

I have done this and it has made no difference...
0
 
LVL 19

Expert Comment

by:webwoman
ID: 12054587
It doesn't display correctly in Mozilla either.

They've put spaces between all the characters. I'm surprised IE displays it. Nothing else will.

Take out the spaces. Use Notepad if you need to. Then save it again and DW should be fine with it.
0
 
LVL 14

Expert Comment

by:Esopo
ID: 12055929
Ouch!!!

**********************
< ! D O C T Y P E   H T M L   P U B L I C   " - / / W 3 C / / D T D   H T M L   4 . 0 / / E N " 
 
                 " h t t p : / / w w w . w 3 . o r g / T R / R E C - h t m l 4 0 / s t r i c t . d t d " >
 < h t m l > 
 < h e a d > 
 < t i t l e > F u j i k u r a   E u r o p e   L t d .   -   B r i n g i n g   E x c e l l e n c e   t o   t h e   W o r l d   o f   T e l e c o m m u n i c a t i o n s  
 a n d   E l e c t r o n i c s < / t i t l e > 
**********************

How did that happen?

A tag that looks like this < h e a d > is not a tag, hence HTML code editors won't be able to recognice your code. you need to remove the chars that separate the letters.

I noticed the format seems to use 3 consecutive spaces to separate words. You could use expressions to "search and distroy" the useless spaces while protecting the others.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:Havin_it
ID: 12063260
Unfortunately you can't run such a function in DW. In fact, I tried running a function to remove all the whitespaces from that little passage and nearly melted my machine.

You need an external 'grep' type app which preserve part of the regular expression it is replacing. If you want to remove every whitespace that is between two non-whitespaces, you need to be able to instruct it to ONLY remove the whitespace.

Alternatively you could try a function to remove every second character, but that's quite likely to run into problems with newlines and four-space gaps.

Altogether now:

<RIGHT ARROW!>

<DELETE!>

<REPEAT!>
0
 
LVL 14

Expert Comment

by:Esopo
ID: 12066502
Havin_it,
Aren't you being a little dramatic? :)


I would prefer to do the entire site again than having to manually remove every missplaced char. I'm sure with the right set of expressions you could - Ctrl + F - yourself out of this mess in a few clicks. Sorry I can't give you the expression myself, I never stoped to learn how to use them.
0
 
LVL 19

Accepted Solution

by:
webwoman earned 500 total points
ID: 12071052
If the format uses 3 consecutive spaces to separate words, you've got a shot.

Open it in Notepad. Save it as whatever.txt. Open the txt file in Word (better search/replace capabilities). Search for 3 spaces, replace them with *****. Then replace all spaces with nothing (you can do this in Word, I do it all the time). That will close up all the space -- ALL of it, which is why you put in the *****.

Now search for your ***** and replace that with a space. You'll probably have to do a quick scan to look for anything obviously screwy, but it will DEFINITELY be a lot faster.

Close it, making sure you keep it as txt. Then delete or rename the old file and rename the fixed one to whatever.html. Open it in Mozilla and see if it displays correctly, and tweak where necessary.

Not ALL the files had all the spaces (the top/side of the frameset seemed to be OK), but some of them did. More than a few would be a real hassle. Even one is a hassle. But search/replace is a lot faster than doing it manually. You could even record your steps and save them as a macro, I've done that before (which is why I said to use Word). Running a macro makes it REALLY fast. You could run through a bunch of these in a few minutes if you set up a macro.
0
 
LVL 14

Expert Comment

by:Esopo
ID: 12071428
>>Search for 3 spaces, replace them with *****<<
Why the hell didn't I think of something like that! maybe it takes a woman... ;)

Ok, forget about expressions. Webwoman's idea seems extremely reasonable except I suggest you use some Search & Replace that can work sitewide, like DWs and other HTML code editors (Can't remember exactly since I am not using my comp. but maybe CSpad and Context).

DON'T FORGET to backup the site before changing the files. Also, I would strongly suggest you hand picked the pages you will parse, and check each one afterwards to make sure they are ok.

Best of luck,

Esopo.
0
 
LVL 10

Expert Comment

by:Havin_it
ID: 12072913
Dang. Webwoman, I think I love you. I might be able to get my mighty tab-delimited list of countries into a select-box now!

<I was genuinely just about to do the whole thing by hand...>
0
 
LVL 19

Expert Comment

by:webwoman
ID: 12078750
I have to clean up a lot of junk, on a regular basis. I do lots of stuff like this, it's about the only way to maintain your sanity. I even have macros set up to replace special characters, add HTML tags based on the style, etc. I still have to tweak a little, but it a huge time saver -- especially when you get Word files that need to be used as includes.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Issue when emailing and there is a space 7 385
Adobe Web Premium CS3 5 374
MySQL Workbench - drawing 1:n relationships on model diagram 4 124
Error pops up while using DWCSS 2015 11 151
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now