Code cleaner bug ? - Post ID 212268

User 2437923 Photo


Registered User
13 posts

Look at :
http://www.ledru.be/bug/CoffeeCupCodeCleanerBug2.html
My mother language is French
User 122279 Photo


Senior Advisor
14,463 posts
Online Now

I don't know what you want to prove. Who would want a second charset, and placed in the <body>?

I don't think the code cleaner was created to remove misplaced meta tags, IMHO.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,195 posts

I think he's try to show code examples on an HTML page.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,463 posts
Online Now

Yes, I understand that. But it's the second charset in the body, where it has no business at all, that messes up the code. I tried to replicate the same, and without the misplaced charset the letters (the same ones as nanar had written) came out just fine after applying the code cleaner, and with the same settings as nanar. But as soon as I added that extra charset, it all went wonky.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,463 posts
Online Now

Addendum:

It's a long time since I've been using the code cleaner, and I'm not saying it is perfect. I know we have had issues earlier, but among the options and parameters for the code cleaner there is nothing that says it has to remove metatags from the body. It is removing empty tags, though, In my testing I tried deleting the charset but not the <pre></pre>, and that was then removed by the code cleaner. - as intended.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2437923 Photo


Registered User
13 posts

For me, better is :

in <head> section,
if 0 charset, Code Cleaner code with UTF-8
if 1 charset(xxx), Code Cleaner code with xxx
if >1 charset , Code Cleaner code with the last charset

in <body> section,
if >=1 charset, Code Cleaner does not code with these charsets



Who would want a second charset, and placed in the <body> ?
You are right, I make a mistake.

I explain you why

I use CoffeeCup HTML Editor to make documentation of my website (in PHP). And I copy/paste, between <pre>, the first lines (with <meta charset="iso-8859-1" />) of another page in the <body> section of my documentation page ... and use code cleaner. Result : all accentuated characters are replaced by �

And, I directly save the result to see the update in my navigator.

Thus, I make three mistakes.
- 1. I put a second charset
- 2. I save the result directly ( because I trust in Code Cleaner )
- 3. I do not have a save copy ! ( because I trust in Code Cleaner )

I'm guilty, but Code Cleaner also because Code Cleaner uses charset even this charset is defined in the <body> section.

Code Cleaner is a very good tool ( I buy CoffeeCup HTML Editor for this reason ), but it would be better if it doesn't use a charset defined in the <body> section
My mother language is French
User 122279 Photo


Senior Advisor
14,463 posts
Online Now

Well, I see your point. But the code cleaner has not be created to do what you want. You could ask the CC staff if they could add those features, though. Ask by posting in the 'suggestions' discussion.

I sometimes use the pre tag for preformatted text, and that works fine, but a meta tag actually is not a preformatted text.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 603315 Photo


Registered User
938 posts

I think you have a fair point nanar, if your not happy with a product and you expect it to do something and it doesn't then you have every right to ask questions. I'm the same with the photo gallery I bought it and it doesn't do what I wish it to do and that means I've got to program a one myself. CC stuff is very good and I like the HTML editor I don't need it just for the code cleaner personally but everyone's needs are different. I would do what Inger suggests and ask them to sort it out if possible.
User 187934 Photo


Senior Advisor
20,195 posts

Make a suggestions as Inger has pointed out and for now keep the character set out of the page and add it after cleaning.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2437923 Photo


Registered User
13 posts

Thanks at all for your posts.
My mother language is French

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.