Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: How do I change charset=UTF-8
by anderssk on 2008/8/10 7:55:40

#18
Give notepad++ a try.
It's also show witch encoding the file have, and you can change it with one click
Re: How do I change charset=UTF-8
by ghia on 2008/8/10 0:24:49

Quote:
trabis wrote:
Yes, but, if you have a utf-8 file and you edit in notepad, it will show weird characteres, it will not converte them. You can not use notepad to convert utf-8 to Iso. Well, I have not figured how to do it yet. :(
Normaly Notepad (V5.0) saves a BOM at the beginning of an UTF-8 text, but it is also good in recognising UTF-8 without BOM, like this one. The only way to see how the file is recognised is to use file save as, where the encoding will be set to the current format.
If an UTF-8 file is incorrect marked as a text file you see weird characters mostly a kind of a and more than one character in the place of one accented character. In that case copy  or type alt 0239 alt 0187 alt 0191 to the beginning of the file. Save, close notepad and reopen then the file. Now the inserted characters are no longer displayed and used as BOM, which forces the file to read as UTF-8.
If you see all alike weird characters such as blocks and your file is correctly interpreted as UTF-8, that means that your fonts characterset is insufficient. Do select all and set with format - font the font to lucida sans unicode, dejavu sans mono or download FreeFont and set it to FreeMono. You should now be able to view most of the characters.
Then save as with encoding Ansi.
Re: How do I change charset=UTF-8
by anderssk on 2008/8/9 7:48:26

The Notepad++ can also convert from UTF-8 to ANSI as well from ANSI to UTF-8

Open Your language-files and select Format -> convert to UTF-8 (without BOM) og
Format -> conbert to ANSI
Save the file again.
Re: How do I change charset=UTF-8
by trabis on 2008/8/8 23:07:30

Quote:

ghia_ wrote:
Are you talking about Windows Notepad? Because there you can select the encoding when doing file - save as. It has ANSI, UTF-8, Unicode little and big endian.
.


Yes, but, if you have a utf-8 file and you edit in notepad, it will show weird characteres, it will not converte them. You can not use notepad to convert utf-8 to Iso. Well, I have not figured how to do it yet. :(
Re: How do I change charset=UTF-8
by ghia on 2008/8/8 22:52:49

Quote:
anderssk wrote:
But the 4 language files in ../install/language/yourlanguage has to be encoded in UTF-8
In my release, there weren't any other language files present except for English. I don't think that would be a problem, while these files are only temporary used with the installation, which generates utf-8 html. Or does the setting of the database encoding to something else, also change the encoding of the html?

There is also an SQL file for the standard XOOPS smilies and ranks. Will that work out allright for any chosen encoding of the database?

Maybe the language files of the install should contain a definition for the default character set encoding for the database.
I for myself would opt for latin1 for our national languages Dutch, French and German.

Quote:
trabis wrote:
And the I ask, what sense is there in having lang files in utf-8. I would need to buy an special editor just to make small changes in language files. Utf-8 sucks big for me. Why can I just use my old and pretty simple notepad? This will soon become the faq most readed.
Are you talking about Windows Notepad? Because there you can select the encoding when doing file - save as. It has ANSI, UTF-8, Unicode little and big endian.
For the moment most modules are ISO encoded for their language and sql files. There will be a lot of problems when going to utf-8.

And if there was to take a unicode characterset I would prefer UTF-16. This makes it easier to reserve dataspace for strings: it's simply the double of the required string length.
Unfortunate MySQL isn't yet complete on that.

Who's Online

204 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits