Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > BBEdit Text Encoding

BBEdit Text Encoding
Thread Tools
Grizzled Veteran
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jul 19, 2003, 12:03 PM
 
I use BBEdit to make my websites. When I look in the Text Files: Saving preferences, there are many options that I have not bothered to play around with before. However, I would now like to start using them. So, I ask your advice.

1 - Which line breaks should I use? Macintosh, UNIX or DOS/Windows?

2 - Should I use Unicode line breaks?

3 - Which Text Encoding should I use? UTF-8? UTF-16? Mac Roman? Any other?

4 - Should I force a new line at the end of a document?

As I don't fully understand the ramifications of those options, I'd appreciate it if someone could explain the merits of the various options, if not here then via a link to a website that explains. I've tried googling for "website text encoding" but can not find a clear and concise explanation of which encoding / line-breaks combination is the most ideal to use.

Thanks,
Simon
BayBook (13" MacBook Pro, 2.4GHz Core 2 Duo, 4GB RAM, 1TB HD) // BayPhone (iPhone 4, 32GB, black)
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jul 19, 2003, 01:09 PM
 
the web server can deal with most of what you throw at so it shouldn't be to much of a concern. the only problem i've had when saving normally is that php's errors all occur on line 1 (which makes debugging very fun).

windows line breaks are interperted correctly by my linux webserver. Play arround a bit but I thing that if the hosting computer is linux then go with windows, if it is a mac go with mac / unix.

normal line breaks are fine

utf 8 is a worldwide encoding, so it's hard to go wrong with it.

no need really.

the code itself is a lot more important the the formatting, put your code through the w3.org validator and it will help you produce encoding tags for whatever you have it encoded in.

--will
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 02:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2