473,378 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

text/html editor question..

at work we switched to UTF-16 encoding and now when I open html files in
HomeSite the code is all messed up, and if I turn on "enable non-ANSI
file encoding" code looks fine when I open files but I get this error
when I try to save them..

"The character set defined in your document does not match the
encoding format you selected in the Save As Dialog" (even though I
don't do Save As, just save..) and sometimes doesn't let me save them
at all (says "file cannot be created" or something like that..)

so: I think I need to get a new editor.. I know I could search google
and find a million editors out there, but was just wondering if anybody
here knows of an editor with which I won't have that problem (and editor
has to be good also for css, JavaScript, jsp's.. I don't use editors to
generate tags or anything like that, I hand-code everything, but well,
have to admit I've gotten a bit spoiled w/all that color-coding,
although that's not essential...;)

thank you..

Frances

Aug 19 '05 #1
9 2771
On Fri, 19 Aug 2005, Frances wrote:
at work we switched to UTF-16 encoding and now when I open html files in
HomeSite the code is all messed up,


UTF-16 is a poor choice for the WWW (at least currently).
Use UTF-8 instead:
http://ppewww.ph.gla.ac.uk/~flavell/...checklist.html

--
Top-posting.
What's the most irritating thing on Usenet?

Aug 19 '05 #2
Andreas Prilop wrote:
On Fri, 19 Aug 2005, Frances wrote:

at work we switched to UTF-16 encoding and now when I open html files in
HomeSite the code is all messed up,

UTF-16 is a poor choice for the WWW (at least currently).
Use UTF-8 instead:
http://ppewww.ph.gla.ac.uk/~flavell/...checklist.html


the reason we use UTF-16 is to enable characters in other languages..
not sure exactly how this works but this is what I've been told..

is there any editor that can handle this w/no problems? thank you..


Aug 19 '05 #3
In article <43***********************@news.sunsite.dk>,
Frances <fd***@yahoo.com> wrote:
the reason we use UTF-16 is to enable characters in other languages..


UTF-8 can represent all the characters that UTF-16 can represent.

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Aug 19 '05 #4
On Fri, 19 Aug 2005, Frances wrote:
UTF-16 is a poor choice for the WWW (at least currently).
Use UTF-8 instead:
http://ppewww.ph.gla.ac.uk/~flavell/...checklist.html
the reason we use UTF-16 is to enable characters in other languages..


UTF-8, UTF-16, UTF-32 encode *exactly* the same set of characters.
http://www.unicode.org/unicode/faq/utf_bom.html
not sure exactly how this works


http://www.unics.uni-hannover.de/nht...ilingual1.html

--
Top-posting.
What's the most irritating thing on Usenet?

Aug 19 '05 #5
On Fri, 19 Aug 2005, Andreas Prilop wrote:
On Fri, 19 Aug 2005, Frances wrote:
at work we switched to UTF-16 encoding
utf-16 appears to be the native encoding used for unicode data in
MS-Windows operating systems and applications. However, it's
inappropriate for use on the WWW, where utf-8 could be an appropriate
choice if a unicode encoding scheme is required. As you said.
and now when I open html files in
HomeSite the code is all messed up,


UTF-16 is a poor choice for the WWW (at least currently).
Use UTF-8 instead:
http://ppewww.ph.gla.ac.uk/~flavell/...checklist.html


Indeed, but I think the hon Usenaut is really asking about a capable
file editor that's usable for web authoring. To be honest, I'd be
reluctant to offer advice on that in general - particularly as we
don't really know what meaning to assign to the original assertion "at
work we switched to UTF-16 encoding". Are no other encodings
permitted there? Do you have no means to convert between encodings?

For hand-coding, modern versions (e.g XP) of Notepad state the
following in their Help information:

You can save your Notepad files as Unicode, ANSI, UTF-8, or
big-endian Unicode. These formats provide you greater flexibility
when working with documents that use different character sets.

In WWW terms the phrase "different character sets" is totally
misleading, of course, since HTML only uses one character set. In WWW
terms, what the help file is trying to say is either "character
repertoire" or "character encoding", but I wouldn't care to guess
which.

By "Unicode" it means utf-16 encodings, as I understand it. But it
can also save as utf-8.

By "ANSI" they mean (well, we've done that hoax before - we have never
found any evidence that the American National Standards Inst. has ever
approved the proprietary Windows-125x encodings which MS persist in
calling ANSI).

best
Aug 19 '05 #6
Andreas Prilop wrote:
On Fri, 19 Aug 2005, Frances wrote:
at work we switched to UTF-16 encoding and now when I open html files in
HomeSite the code is all messed up,


UTF-16 is a poor choice for the WWW (at least currently).
Use UTF-8 instead:
http://ppewww.ph.gla.ac.uk/~flavell/...checklist.html


thank you all for insightful responses.. just wanted to clarify that
when I said "different languages" I didn't mean just French, German, and
such, but Chinese, etc.. and: this is not in general for all our www
stuff, it's actually for data CD's we burn for our clients and not for
our stuff on our webservers.. thank you again..

Frances
Aug 19 '05 #7
Frances wrote:
at work we switched to UTF-16 encoding and now when I open html files in
HomeSite the code is all messed up, and if I turn on "enable non-ANSI
file encoding" code looks fine when I open files but I get this error
when I try to save them..

"The character set defined in your document does not match the encoding
format you selected in the Save As Dialog"
It sounds like there is conflict between the actual file encoding and
that which is declared in a meta element (or XML declaration for XHTML/XML).
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16">

There are two possibilities:

1. The file really is encoded as UTF-16 (either BE or LE) and
the meta element declares something else. Or
2. The meta element declares UTF-16, but
the file is not encoded as UTF-16. If this is the case, then you
need to understand that simply changing the charset declared in the
meta element doesn't change the character encoding of the file.
so: I think I need to get a new editor..


More likely, you just need to learn to use your editor and gain a better
understanding of Unicode. See this 3 part guide to unicode for more
information.
http://lachy.id.au/log/2004/12/guide-to-unicode-part-1

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Aug 19 '05 #8
On Fri, 19 Aug 2005 09:35:55 -0400, Frances wrote:
I think I need to get a new editor.. editor
has to be good also for css, JavaScript, jsp's.. I don't use editors to
generate tags or anything like that, I hand-code everything, but well,
have to admit I've gotten a bit spoiled w/all that color-coding...


I use and recommend Bluefish <http://bluefish.openoffice.nl/>. It handles
all the different encodings I've thrown at it, is aware of CSS, JS, and so
forth, and even color codes. It is available for Linux and other *nixes.

If you're on Windows, beats me. For a client I had to find a good open
source HTML and CSS editor for Windows, and in the end I failed.

--
Warren Post
Santa Rosa de Copán, Honduras
http://srcopan.vze.com/
Aug 19 '05 #9
Warren Post <wp**********@hondutel.hn> in
news:pa****************************@hondutel.hn:
If you're on Windows, beats me. For a client I had to find a good open
source HTML and CSS editor for Windows, and in the end I failed.


1:
am using crimson editor syntax coloring for css, html, etc (ce chooses syntax set by file
extension of file being edited, but user can change coloring set in menu)

it's a little glitchy, but useful enough that i'm not using my usual editpadlite or metapad.

"spellcheck" is just a misspell marker. (as of now? or maybe i haven't found the hidden
cfg?)

there are other syntax coloring editors. eg, pspad... which i didn't try.. i can't recall what
dissuaded me.. possilby pspad uses java... i know i avoid .NET and java based ware.

2:
topstylelite by homesite's orig author, nick bradbury, is useful. lots of convnenices are cut
out of this "liteware" versoin. but what's there is useful for css,.
it "renders" using ie (i can tell, because mouse context commands from ie show in
topstylelite :-) )

the rendering cannot show nesting, because nesting occurs in your html file, not css file.
also some attribs don't render.
it has preselected element list, css1 css2 netscape6 mobile, ancient ie 4, etc.

unfortunatley no moz1.x (opacity for exmaple) set
that is currnet gecko rendering (firefox's ) category
3:
firefox with chrispederick's webdevloper xpi. http://www.google.com/search?q=chris-
pederick+web+developer+%7C+webdeveloper
commands to w3's css and html validators.. can add your own to the list of validatoin stuff
('stuff'' yeah, i'm QuasiNewbie, if you can't tell!)
some useful commands are not so obvious. show elements. show strucutre. show other
stuff ,,, size, img, atribs, imgs off,, etc
toggle those (can set commands to 'persits' through page relaods, while you fiddle wiht
something stubborn)

also i use googlebar or other search help xpi cause i'm googling for css info A LOT!

4:
cse validator freeware versoin
useful for speed and directly editalbe file as you scroll thru erros report. small nag at
shutdown.

5:
online: wdg validator
--------
rejects:
easycss 2003 (my breif tryout impressoin): sim to topstylelite, but less feature/lesser UI.

nvu. inscrutalby breaks *and* scrunches your exisiting code. wait to try next versoin. btw,
moz addons has a few nvu xpi, just edit the tail of the url
application=nvu

acehtml 5 (discontiued freeware ver)
fired it up but i think it was obnoxiously naggy.. somehting annoyed me immediatley..

CascadeDtp
tried, was immed wrong (don't recall what)

amaya-WinXP-9.2.1[12Jul05.exe
just not useful
editing window too small.. i cna't recall other limitatoins.. but ... the sum of other small
reasons added to "no".

layoutmaster recent relicware. free from westciv.
limited output. seems not useful once you already have basic layouts. (i'd already mangled
up some layouts when i 1st tried layoutmaster)

---
reject before download (non css or other reason given in posts)
CuneAform

---
not yet tried, but maybe...

Alleycode HTML Editor
(maybe, but html only?)

Selida2Setup.exe
may not try, seems output has problems.. (usenet posts)

css maguma
may try, though seems output has problems.. (usenet posts)
Top Dawg HTML Editor
(maybe, but html only?)

XStandard XHTML WYSIWYG Editor (FREE) .. standards-based WYSIWYG blah balh ..
webpage has silly blah blah long title
but wysiwyg may be useful.. not sure why i havne't tried.. just didn't get to it.. "xhtml" is
too close to the end of the alphabet :-) ha. not the reason..
if this app deosn't f0kk existng code, then the wysiwyg could be very useful, for draggin
and typing and pasting elements inot proper location. editing correct (intneded) locatoins
with text editors is onerously ambiguous. time-consuming

also have fp2000 as part of office 2k, but somehow it hasn't been useful... not worth using
again after poking at it numbers of times in last few years...

--

one of those, snapfiles or sofpedia, cna be set to filter for only freeware

---
i'm sure there's more.. you can report your research and tryouts here (i added xpost to
freeware group, since their msgs come up often googling this topic)


Aug 27 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zwylle | last post by:
Hi all, to avoid a nervous breakdown I finally decided to seek help :D I have a table defined with plain color background and in some cells I show pictures to frame my site. The problem I...
14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
9
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from...
1
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
2
by: VB Programmer | last post by:
I want to create an email message with a HTML body and email it out. I know how to create/send the email (for the most part.) 1. Any ideas or examples of using an ASP.NET rich text editor so...
7
by: Prasad | last post by:
Hi all, I am trying to develop a simple rich text editor I do only require bold, itlaic, underline.. The code for IE is <script> function displayEditor(editor, html, width, height) { ...
36
by: karen987 | last post by:
My newsweblog has ASP pages with news articles and a commenting system. The comments are posted, and to read them the reader clicks on the headline of the comment, and it opens up in a pop up window....
1
by: Victor | last post by:
Hi guys I have a small question abou the vs2005's text editor. in my text editor, any space or tabs become little dot. i forget what shortcut i pressed.It looks not right to me at all. Can anyone...
3
by: danesh1354 | last post by:
Hi All, First I need to construct a text editor by python programming and add this code to a biger code that has been written before, and i would like that by my code for this editor have a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.