Solved

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

Posted on 2004-09-14
12
189 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet explorer web page rendering issues. 5 521
COLDFUSION 9 DEVELOPMENT SERVER STOPPED WORKING 9 448
Setting up PHP server 3 208
Opening .cgi Files in DreawWeaver cc 2015 6 121
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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