On a couple sites I've made random ASCII characters have been appearing in the middle of the document. It's always been on test sites and has never been a problem until my most recent project for a client that it just appeared on. They aren't displayed in the development environment I use (aptana 3), but then appear both on screen and in the source code when viewed in a browser.I've looked around and it looks like others have had the issue but I haven't been able to find any real solution. I tried messing with the text-encoding but nothing changed. Has anyone been able to solve this issue?
Did you try saving your file as UTF-8?
Did you verify that your file is actually saved as UTF-8?
A Linux command to check the file type is:
file -i filename.html
Did you verify the content-header being sent from the webserver?
Is any of the text coming from a database?
You could also try adding the following meta string:
<meta charset="utf-8">
With your example site: http://www.oryxwebstudio.com/saloncruz/#contact
Maybe I'm blind but I do not see any invalid characters in IE, Firefox or Chrome. Here is a screenshot of Firefox:
Related
I have bookmarks downloaded from firefox and they are a json file.
I'm searching for a site where I can upload the json file and then download it in html format.
Does such a site exist?
THANK YOU for your kind assistance.
(Every time I do a search for this question, your site comes up.)
I don't know of a site that will do this online, but I do know of a few other ways:
You could restore them back into a Firefox profile and then export them as HTML from there, like this:
You could download and run a program like https://github.com/andreax79/json2html-bookmarks to convert them locally
You could use JavaScript to convert them in-browser, though not with an actual site, like this: Quick and dirty way to parse a mozilla firefox json file
If you need to display JSON, try with the firefox extension named jsonview.
Check out CodeBeautify, just paste and hit the Beautify button https://codebeautify.org/json-to-html-converter
There’s a lot of plugins and add ons for almost every browser out there; Firefox and especially chrome have great ones as others have mentioned, it’s worth checking out.
You are making it harder than it is. There is no JASON to HTML conversion required. Go to C:\Users\Username\AppData\Local\Google\Chrome\User Data\Default and find bookmark.file. Save it to your desktop. Uninstall the browser but also check the box that asks whether you want to keep history, etc.
Reinstall the browser, then add the bookmark.file to C:\Users\Username\AppData\Local\Google\Chrome\User Data\Default
It will overwrite the file and you have your bookmarks back. It takes about 10 minutes. No coding. No JASON to HTML conversion. Nothing.
I found invisible sign in my DOM. It is strange that I dont have it on my local website. When I send it on the server it appears there.
I tried copying this file to notepad++ and converting to UTF-8 without BOM and I was copying and pasting it to notepad.exe but also without any result. The server page keeps showing me this sign.
I also clicked in notepad++ to show me all invisible signs and it shows only CR LF.
Browser inspect of the file on my local machine:
Browser inspect of the file on the server:
Why it keeps showing there? and why the head content is moved to body?
I'm sure that aliens did it! Please help me.
The invisible character was hiding in .env file or one of the config files. I just converted them all to utf8 without bom in my notepad++ and its fine now!
ps. Yes, I still think that aliens did it!
I'm new to bootstrap. I want to use the bootstrap on my previous project. But once I included the bootstrap.min.css it failed, while it can work fine if I create a new html from scratch.
I've uploaded the sample files in GitHub: https://github.com/kid551/toolbox/tree/master/bootstrapSameFiles . You can check that the test.htm and test2.htm are the same files but they will display differently like this:
test.htm:
=============================
=============================
test2.htm:
=============================
=============================
I think you can rebuild this issue by directly downloading from GitHub.
I don't know why it happens and how I fixed this.
Thanks.
You're running into some encoding issues. Even though your code base seems to be the same - it isn't. Let me show you visually.
The moment I switch from UTF-8 to UTF-16 BE, your working versions (test.htm) code gets cryptic, while the other one seems to be pretty well working.
test.htm (UTF-16 BE)
test2.htm (UTF-16 BE)
So eventually you might have copied your code from somewhere else or even used a wrong encoding.
EDIT
You can test that with any editor which is able to show you some code. Just try to delete a linebreak by hitting backspace at the first index of a row. You'll notice on almost every row that you're not deleting the linebreak but an 'invisible character' instead. So that again means, you're just not able to see those charecters your editor is not able to encode properly.
I have downloaded your source from the GIT. You are right both are similar but there is something wrong with the test2.htm file. I have NetBeans installed on my local. When I open test2 file its showing source as empty in NetBeans.But if I open the same file using notepad++ it's showing the source. So maybe file is corrupted. What I suggest is try to create the new file or use NetBeans. After saving using NetBeans its displaying same as test.html
Ok so I have a intranet webpage that I am making using HTML and I want to put a link (absolute or relative) on my page that opens a PDF.
The code I use is
Privacy and Security
Now what ends up happening is that I get this error:
404 - File or directory not found. The resource you are looking for
might have been removed, had its name changed, or is temporarily
unavailable.
Is there anything wrong with my code or where I am placing the document?
Thank You
If you are running this on a local machine check the permissions on the PDF file that they are world readable. I have this happen a lot in my OS X web directory, some files dragged in seem to have different permissions.
I see a number of small... oddities... in your sample line, which may or may not be significant in themselves, but could cause problems if you're doing any post-processing of the line before it goes live.
http://harold.local/documents/sandP.pdf is a good destination, correct? If you drop that by itself in to the address line of your browser, you can confirm that the PDF document can be found and displayed?
If you're doing any further processing of that string, should you be escaping the slashes or backslashes by doubling each one?
There's a stray space between your target= argument and your _blank value, again a possible risk if something later on will attempt to parse the string.
There is what appears to be a stray Left Angle Bracket (or Less Than) symbol ("<") immediately in front of your Privacy and Security text, which could be misinterpreted as the start of a <p tag, probably not what you want.
I would start by verifying the destination, then adding the context around it a bit at a time until something breaks. Failing that, find a similar working example of the <a usage on your local machine, and use that as a starting point for the link to your sandP.pdf document.
I have a basic webpage that references four image files using the following code:
<img src="/images/SanFran.jpg" name="urbanForm" alt="urbanFormA" width="150" height="100"/>
(I change SanFran.jpg, to London.jpg, NewYork.jpg and Barcelona.jpg - just replacing the filename)
However, although the 4 jpegs are very similar (200 x 150 pixels) and made using a similar technique (cropping an image in Picassa), only one of the files will load (London.jpg). The other three give me a broken link message. I have checked that I am do not have misspellings numerous times, and cannot find the problem.
Is there anything that I have not considered?
(I'm using Aptana Studio on OSX and viewing it using Safari as a previewer; the same problem exists if I look at it using Firefox or Chrome)
Are all the images in the same directory?
Make all the file names lowercase, so you know that isn't the issue.
double check extensions, "jpg or jpeg or JPG or JPEG"
take it back to basics <img src="images/filename.jpg" />
Try naming one of the others
SanFran.jpg. See what happens.
Might give you a clue.
Open them all in windows explorer,
confirm the images themselves load
normally and aren't corrupt.
Check all are in /images/
right click on the broken link and
choose view image or copy image
location. See if where it's trying
to access is definitely the right
place.
Do the same with the working one.
Compare and see if any differences.
change everything to lowercase, just
in case (excuse pun)
hit ctrl+shift+reload a few times,
and F5 a few times.
clear cache manually if you know how
or have the tools.
Copy it to a different loacation and
try loading them there. Ideally a
different computer.
Upload it somewhere and see if it
works in your browser when online
Hopefully one of those may help...
If you know the files are there, make sure the case of the filename matches (s is different than S on Linux), and then make sure .jpg is the proper extension and not .jpeg.
It could be because your Jpegs are saved as CMYK as oppose to RGB. See this link for more detail. However this would only affect some browsers
http://www.plaveb.com/blog/cmyk-images-not-displayed-in-internet-explorer
Open the images in Photoshop and resave in RGB color format (just incase it's CMYK). Known issue in some legacy browsers, not sure when or if it went away.