Link to home
Start Free TrialLog in
Avatar of gjirvine3000
gjirvine3000

asked on

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

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
Avatar of webtrans
webtrans

set the default language in Dreamweaver to english
Avatar of gjirvine3000

ASKER


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

Thanks
Edit >> Preferences >> Encoding

I think there might be a problem with encoding...
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...
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.
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.
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!>
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.
ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>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.
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...>
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.