Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

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
0
gjirvine3000
Asked:
gjirvine3000
  • 3
  • 3
  • 2
  • +3
1 Solution
 
webtransCommented:
set the default language in Dreamweaver to english
0
 
gjirvine3000Author Commented:

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

Thanks
0
 
nishasrilankanCommented:
Edit >> Preferences >> Encoding

I think there might be a problem with encoding...
0
Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

 
gjirvine3000Author Commented:
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
 
webwomanCommented:
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
 
EsopoCommented:
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
 
Havin_itCommented:
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
 
EsopoCommented:
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
 
webwomanCommented:
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
 
EsopoCommented:
>>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
 
Havin_itCommented:
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
 
webwomanCommented:
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now