Forum Moderators: open
I have to copy the contence into my CMS content management system.
My content management system is Perl based and uses MSIE as GUI.
So I copy from the document, paste it into a TEXTAREA of my CMS.
Since I put
<meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
The pasted contence in the TEXTAREA looks greek.
Next step is, that my CMS reads the contence of the TEXTARE and puts the contence in the database.
After this, I built the screen with an innerHTML new.
I put the just copied contence into the TEXTAREA, but now it does not look like greek.
Any idea how to solve my greek problem?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
</head>
<body>
te?a?dat?
<textarea>
</textarea>
</body>
The strange te?a?dat? should be something greek.
When I open this as a page with MSIE, I can paste the same from the clipboard and it looks like greek.
But I have no idea how to read out the TEXTAREA, that it remains greek.
What we usually have to do for the Asian languages we work with is to first us the "Save As" function in Word and save the file as type "Encoded Text" to save it as a text file with the proper encoding for that character set. You should then be given a list of options for which encoding format to use. (You may need to try several types before you find what works best.) After you save the file, close it, then open it with Notepad. Cut and paste text from that file into your form.
Saving directly from MS Word to HTML is way beyond evil- avoid it like the plague
I thought to extract out of the HTML file only the codes.
Now I have an even better way.
I mark and copy out of the word document
I open a new email, switch format to Rich Text HTML.
I paste into the email
I switch to "show source"
Now I have all the &#nnn; codes to copy the to my database