Posted 10 years ago by Ben Sailors
Version: 2.3.14
Avatar

Hi,

First off, thanks for this great app! I truly think it's a great app.

 

I'm running into an issue with img src tags in HTML locally.

 

I can create an html file in Notepad like so:

 

<html>

<head>

</head>

<body>

<img src="image.jpg">

</body>

</html>

 

and it works fine as a saved html.

 

If I create the same file in Code Writer, the image doesn't show up in IE locally. I don't know if it's an encoding issue or what. It reads the CSS fine but images in the same directory it's totally oblivious to. I'm not sure if I need to select a different encoding when I save or what, but it's highly frustrating.

 

Online, using an Apache server, it works fine either way, but trying to work locally is currently impossible. I'm using a Nokia 2520 Windows RT tablet with a power keyboard and a USB mouse connected.

Any help would be appreciated. I hope it's something easy I overlooked.

Comments (6)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ben,

Which exact version of Code Writer do you have?  This issue sounds like this bug report, but that should have been fixed in the latest build.

Also which character encoding are you using?


Actipro Software Support

Posted 10 years ago by Ben Sailors
Avatar

Hi,

I have version 2.3 according the About portion of the app. The bug report you linked to does indeed seem to be the same kind of issue.

I've tried ANSI encoding, automatic detection, UTF-8, Western European. I've tried matching the saved encoding to the same encoding used in IE (Which is also changable), but no luck. But even after changing the encoding in IE, I can still open any file saved in ANSI via Notepad correctly.

I wish I could say I had a clue as to what is creating the issue, but I truly don't. I've tried to troubleshoot it myself, but it seems to be something to do with the saving process in Code Writer. I think theres a good chance it may be a problem with the API that Windows RT uses to save the file as well. Other apps Ive tried havent worked either.

[Modified 10 years ago]

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ben,

v2.3 definitely fixed one issue with files but it was due to a bug where we needed to set an option to completely overwrite a file.  Previously, this bug occurred if a character encoding (non-automatic) was set and the file being saved was smaller than the size of the existing file on disk.  The smaller file would write itself out but leave the remainer of the larger file's content in tact.  But again, v2.3 fixed that so that shouldn't be the problem here.

I did a simple test similar to you and can see the same issue.  Here's what I've done:

1) In Code Writer, create and save a new Simple1.html file that references an image in the same local folder.  Open Metro IE and see it doesn't show the image.

2) In Code Writer, update text in the Simple1.html and save it.  Refresh Metro IE and see text change but still no image.

3) In Notepad, create and save a new Simple2.html file that has the exact same text content as Simple1.html.  Open Metro IE and see that it DOES show the image.

4) At this point, I would think it would be an encoding issue so I open both files in Araxis Merge and text diff them.  There are no differences.  I use Araxis Merge and Visual Studio and both say they have the same encoding.  I then do a binary compare in Araxis Merge and they are identical.

5) In another competitive Windows Store text editor app, I create Simple3.html, again with the same text content and save it.  Open Metro IE and see that like with Code Writer, it does not show the image.

6) In Windows Explorer, I copy Simple1.html (one with problem) to Simple1b.html and Simple2.html (one that works) to Simple2b.html.  Open Metro IE and look at both files.  Simple1b.html doesn't show the image, while Simple2b.html DOES soes the image.

7) Then I make a .zip file with Simple1.html (one with problem).  I unzip it to another folder and rename it to Simple1z.html and copy it back to the original folder.  Open Metro IE and it DOES show the image.  This is baffling because it's the same file as Simple1.html, so clearly Windows/IE is causing some problem perhaps with metadata it stores.  The .zip file breaks the chain of metadata.

8) Open all of the files in Chrome (desktop) browser and they all show images fine.

Can you run through the same process as what I did above and verify that you see the exact same thing?  I'd like to report this to the IE team if you have the same results.  Thanks!


Actipro Software Support

Posted 10 years ago by Ben Sailors
Avatar

I'll be working on this today. Sorry for the delay.

Posted 10 years ago by Ben Sailors
Avatar

I can confirm that everything above is correct and I got the same results, and zipping and unzipping the file did result in the file working correctly.

[Modified 10 years ago]

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Thanks Ben.  I have created a Connect bug here.  Can you please vote it up and comment as appropriate?


Actipro Software Support

The latest build of this product (v4.2.42) was released 3 years ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.