New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Looking for the right HTML editor


Post Reply New Thread Subscribe

 
Thread Tools
Macata

 
Macata's Avatar
 
Member Since: Jan 29, 2011
Location: Sunny Caribbean
Posts: 9
Macata is on a distinguished road
Mac Specs: iMac 21.5 3.06GHz Intel Core Duo 4Gb 1067MHz DDR3

Macata is offline
I'm switching to MAC and am having trouble finding a text editor for HTML that deals with character encoding other than UTF-8. I searched the forum and did find several HTML or Text editors that look very interesting and capable, but digging deep into the features I haven't found one that can convert character encoding. On Windows I used Notepad++ and sometimes PSPad, but neither has a Mac version. I have read that it is possible to use Notepad++ with Wine or DarWine, but can't find details of how that works. I downloaded Wine but haven't figured it out. I don't mind converting my sites to UTF-8, but when I have tried in TextEdit and TextWrangler, they open and save in utf-8, but don't actually convert the character encoding, it produces a mess. It does not convert from ISO-8859-1 to UTF-8, it just saves the existing text as UTF-8. If it was a page or two I would just start over, but there are thousands of pages that need editing from time to time. Has anyone here gone through this mess before?
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
It's hard to say, since you don't describe what exactly you're trying to do or what kind of "mess" you're ending up with.

I can assure you that there are plenty of good Mac text editors, including TextWrangler, that can open, save, and convert just about any text encoding, including UTF-8 and ISO-8859-1, perfectly well.
QUOTE Thanks
Macata

 
Macata's Avatar
 
Member Since: Jan 29, 2011
Location: Sunny Caribbean
Posts: 9
Macata is on a distinguished road
Mac Specs: iMac 21.5 3.06GHz Intel Core Duo 4Gb 1067MHz DDR3

Macata is offline
My sites are encoded in ISO-8859-1. Ideally, these html files could be opened and edited and saved in the same text encoding that they have but if necessary I will change each file as it is opened and save it as UTF-8.

In TextWrangler, the first html page I opened was instantly converted to UTF-8 but the Doctype was altered and all my html became html entities with "apple spans" inserted in the whitespace. The page had the proper Doctype declaration and to change that I would need to alter the page and the CSS which I wasn't planning to do for each of these pages. That is the mess I am referring to. Here is the first few lines:
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.32">
</head>
<body>
<p class="p1">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;</p>
<p class="p1">&lt;html&gt;</p>
and
Quote:
<p class="p1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>&lt;link rel="shortcut icon" href="<a href="view-source: favicon.ico"><span class="s1">favicon.ico</span></a>"&gt;</p>
<p class="p1"><span class="Apple-tab-span"> </span>&lt;/head&gt;</p>
<p class="p1"><span class="Apple-tab-span"> </span>&lt;body&gt;</p>
It is as if the program assumed that my html file was RTF and converted tags to character entities as in < becomes &lt;. The terminology for character encodings seems to be proprietary, I never heard of the names in the list for preferences. I took a guess and selected ISO-Latin-1 for the format to open and kept the UTF-8 as the format to save.

I see there is a new version of TextWrangler available today so until I try that, I am not giving up. I can see why it is a strong temptation to run Windows on Mac though, just so you can keep on using familiar tools and get the job done.
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
Pretty sure you're confusing TextWrangler with TextEdit.

TextEdit has several modes, one of which is a (very limited) WYSIWYG HTML editor which may well do what you're describing.

TextWrangler is a pure text editor, which is what you're looking for.
QUOTE Thanks
yogi

 
yogi's Avatar
 
Member Since: Jan 14, 2005
Location: St. Gallen, Switzerland
Posts: 1,973
yogi is a name known to allyogi is a name known to allyogi is a name known to allyogi is a name known to allyogi is a name known to allyogi is a name known to allyogi is a name known to all
Mac Specs: iMac Core i5, iPad, iPhone 4

yogi is offline
If you're looking into something more (a lot more) powerful: TextMate is my editor of choice. It's a bit pricey, though.

If you liked this post, consider using the Reputation System.
QUOTE Thanks
Macata

 
Macata's Avatar
 
Member Since: Jan 29, 2011
Location: Sunny Caribbean
Posts: 9
Macata is on a distinguished road
Mac Specs: iMac 21.5 3.06GHz Intel Core Duo 4Gb 1067MHz DDR3

Macata is offline
Text Edit is the first one I tried before I looked at Text Wrangler, it was a few months ago that I wrote off TextEdit. It is not impossible that the example I pasted was that result and not from TextWrangler since I didn't take notes. I downloaded the new TextWrangler today and it still has the strange names for character sets but I did not have the same problem I had before. It was about 6 months ago that I first tried these tools before I took the easy way out and went back to an old peecee until its hard drive died last week. I also found a pdf user's manual for TextWrangler that should make a difference.

In a few years I might get around to try all the tools I have found so far for Mac, I was just kind of hoping to get some recommendations from people who use some of them. BBEdit looks like it has more of the features I use, I will take a look at TextMate. Free is nice, but I don't mind buying useful tools.
QUOTE Thanks

Post Reply New Thread Subscribe


« Downloading Photos? | new to the mac world..need to get a few things straight »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
WYSIWYG html editor for mac ricocha OS X - Apps and Games 4 06-30-2010 09:51 PM
Suggestion for an HTML editor dweiss31 Web Design and Hosting 12 04-08-2010 01:40 PM
WYSIWYG html editor matthewjlewis Web Design and Hosting 9 06-04-2009 09:34 PM
Budget HTML Editor amardilo Web Design and Hosting 7 02-08-2008 03:39 PM
Plain text HTML editor for OSX? iMan Web Design and Hosting 10 09-01-2005 11:52 AM

All times are GMT -4. The time now is 07:21 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?