473,386 Members | 1,720 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,386 software developers and data experts.

What encoding better to select ?

what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8
?

m.

Oct 24 '06 #1
6 1944
mistral said the following on 10/24/2006 10:17 AM:
what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8
?
The default - ANSI.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 24 '06 #2

"Randy Webb писал(а):
"
mistral said the following on 10/24/2006 10:17 AM:
what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8
?

The default - ANSI.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
-----------

What?? Why? I've saved all my script in UTF-8.

m.

Oct 24 '06 #3
ASM
mistral a écrit :
"Randy Webb писал(а):
"
>mistral said the following on 10/24/2006 10:17 AM:
>>what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8
?
The default - ANSI.
What?? Why? I've saved all my script in UTF-8.
That's good, my text-editor will be able to read it
(ANSI ... I don't know if he can)
Oct 24 '06 #4
mistral said the following on 10/24/2006 11:17 AM:
"Randy Webb писал(а):
"
>mistral said the following on 10/24/2006 10:17 AM:
>>what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8
?
The default - ANSI.
What?? Why? I've saved all my script in UTF-8.
That begs to ask why you even bothered to ask the question to start
with. But I have never changed the encoding in Notepad and I have never
had anybody tell me they couldn't open it in any text editor on any OS.

Your newsreader is broken.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 24 '06 #5
ASM
Randy Webb a écrit :
I have never
had anybody tell me they couldn't open it in any text editor on any OS.
fastoche : pas d'accent !

easy : no accent in your text ...

--
ASM
Oct 24 '06 #6
"Randy Webb wrote:
"
mistral said the following on 10/24/2006 11:17 AM:
"Randy Webb wrote:
"
mistral said the following on 10/24/2006 10:17 AM:
what encoding better to select when paste javascript or php code into
windows Notepad and 'Save as'? ANSI, Unicode, Unicode big endian, UTF-8 ?
----
The default - ANSI.
---
What?? Why? I've saved all my script in UTF-8.
---
That begs to ask why you even bothered to ask the question to start
with. But I have never changed the encoding in Notepad and I have never
had anybody tell me they couldn't open it in any text editor on any OS.
Your newsreader is broken.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
----------

Just read somewhere that code need be saved in utf-8. However, probably
that was wrong info. Win98 notepad have no encoding selector, its in
win XP notepad.
Now its clear. Thanks.

M.

Oct 24 '06 #7

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

Similar topics

10
by: David Komanek | last post by:
Hi all, I have a question if it is possible to manipulate the settings of character encoding in Ms Internet Explorer 5.0, 5.5 and 6.0. The problem is that the default instalation of Ms IE seems...
2
by: FrankStallone | last post by:
I am just getting started in XML and I made my first xml, dtd and xslt file and XML spy said they were all valid and they worked. This was the xslt doc that worked. <?xml version="1.0"...
2
by: Kathy Zhu | last post by:
Hi, sorry that this email is a little bit long, but it is actully not :-)) **** I have a database 'unidb' created with -E UNICODE. $ psql -l List of databases Name | Owner | Encoding...
2
by: Ziver MALHASOGLU | last post by:
Hi, I produce a text file using my windows application written with c#. -- System.Text.Encoding encOutput=null; encOutput=System.Text.Encoding.UTF8; StreamWriter sw=new...
5
by: Peter Romero | last post by:
All I want to do is write a simple app that takes a user-entered character and gives me the 1, 2, or 4 bytes that represent it in UTF-8. Common sense indicates that the active code should be about...
2
by: Alex Maghen | last post by:
I have created the world's simplest Code-Behind ASPX page in VS 2005. I've used all the defaults. But when I go to build and run the page, it comes up in Chinese (or some Asian character set). I've...
14
by: salad | last post by:
XML seems to be a hot technology buzzword. And it appears XML is supported in A2003. I am wondering if it could be used in the following scenario. I create an order record for the customer. ...
8
by: Erwin Moller | last post by:
Hi group, I could use a bit of guidance on the following matter. I am starting a new project now and must make some decisions regarding encoding. Environment: PHP4.3, Postgres7.4.3 I must...
4
by: Erwin Moller | last post by:
Hi, Background: I am working on a multilanguage project now, so I decided to switch to UTF-8 completely to avoid troubles with unicode character. I hope somebody can review my approach and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.