Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.

Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.

HTML Tidy outputs always with nonsense characters

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

HTML Tidy outputs always with nonsense characters

Postby ikblazing on Tue Jul 06, 2010 1:35 am

No matter how I adjust the options, it always turns my webpage to unrecognizable characters, like the image attached. Does anyone know what's wrong? Thx
646464.jpg
646464.jpg (67.69 KiB) Viewed 181 times
ikblazing
Newbie
 
Posts: 2
Joined: Tue Jul 06, 2010 1:25 am

Re: HTML Tidy outputs always with nonsense characters

Postby Mofi on Tue Jul 06, 2010 9:52 am

Upload as attachment to a further post your HTML (PHP) input file and the entire section [HTMLTidyOptions] from %appdata%\IDMComp\UltraEdit\uedit32.ini to have any chance to find out the reason for this output. Please tell us also which version of UltraEdit you use. English UltraEdit version 16.10.0.1035?

The output I get in the output window when parsing one of my HTML files with HTML Tidy of UE v16.10.0.1035 is only

HTML Tidy Parsing ...OK

and the tidy document in the ** HTML Tidy Output ** document window is well encoded and displayed.

My HTML file contains in head section the line

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

and the file is an ANSI file using this code page. To be more correct, it is an ASCII file because HTML entities used for ANSI letters.
Best regards from Austria
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3121
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: HTML Tidy outputs always with nonsense characters

Postby ikblazing on Wed Jul 07, 2010 10:35 am

I fixed this:
Download a portable trial version UE and it works so I mirrored every configuration item from it and found I set the UE to create a new file always as utf-8 format.
After changing that to ascii(default) it works well, don know why though, thank you :D
ikblazing
Newbie
 
Posts: 2
Joined: Tue Jul 06, 2010 1:25 am

Re: HTML Tidy outputs always with nonsense characters

Postby Mofi on Thu Jul 08, 2010 6:48 am

Thanks for posting what caused the strange display. HTML Tidy always outputs in ASCII/ANSI. UltraEdit should therefore ignore the setting for new files when capturing the output of HTML Tidy into a new file or correct convert the Tidy output from ANSI to UTF-8 or UTF-16. I will report this issue by email to IDM.

Edited on 2010-08-31: With UltraEdit v16.20.0.1009 this issue is partly fixed. If new files are UTF-8 encoded files according to the configuration setting, UltraEdit converts the new file first to ASCII / ANSI before writing the output of HTML Tidy to the new file and therefore the parser output is readable in the new window. But if new files are UTF-16 encoded files according to the configuration setting, the HTML Tidy output in the new file is still wrong and so not readable at all.
Best regards from Austria
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3121
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Custom User Tools/Tool Configuration

Who is online

Users browsing this forum: No registered users and 2 guests