Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Saving UTF8 files in BE within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, When I'm editing locallang.xml files in the BE using Quixplorer, it doesn't get saved as a ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
When I'm editing locallang.xml files in the BE using Quixplorer, it doesn't get saved as a UTF8 file, so I get the error about the locallang file not being a proper langage file... What is it that dictates which character encoding is used when saving files? Is it Quixplorer? Some TS constant? Or is it more fundamental at a PHP/OS level? Ideally somewhere in TS I could do plugin.t3quixplorer.charset = UTF8 Any advice/ideas? //Plankmeister _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Andrew Plank wrote:
> Hi, > > When I'm editing locallang.xml files in the BE using Quixplorer, it > doesn't get saved as a UTF8 file, so I get the error about the locallang > file not being a proper langage file... Are you sure you did not put html entities in locallang file? Those should better be stored as CDATA. What exactly does the error message say? How does the line look it refers to? Greetings Lars _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Lars Haendler wrote:
> Are you sure you did not put html entities in locallang file? Those > should better be stored as CDATA. > > What exactly does the error message say? How does the line look it > refers to? > > Greetings > Lars If I copy'n'paste from a source, and that source includes the Danish æ ø å characters, and then save the aforementioned locallang.xml file in Quixplorer, when I try to view the extension in the FE that makes use of this locallang file, I get an error, for example: The file "/var/www/vhosts/*******.dk/httpdocs/typo3conf/ext/sr_email_subscribe/pi1/dk.locallang.xml" is no TYPO3 language file! However, if I paste the copied data directly into a text editor (in my case Dreamweaver) and then FTP the file up to the server, it works fine. Obviously, when subsequently editing the file in Quixplorer, the UTF8 entities are converted to for example Ã¥ = å The only difference that I can think of, is that when saving the file in Dreamweaver, it saves it and encodes it as a UTF8 file, whereas Quixplorer doesn't. But I could be wrong... _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi!
Andrew Plank wrote: > When I'm editing locallang.xml files in the BE using Quixplorer, it > doesn't get saved as a UTF8 file, so I get the error about the locallang > file not being a proper langage file... > > What is it that dictates which character encoding is used when saving > files? Is it Quixplorer? Some TS constant? Or is it more fundamental at > a PHP/OS level? Your BE charset. It is different depending on the language. Most likely yours is iso-8859-1. > Ideally somewhere in TS I could do plugin.t3quixplorer.charset = UTF8 Quixplorer is BE module, therefore there is no "plugin" thing. Use llxmltranslate ![]() -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/post-details/t...ng_in_eclipse/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Dmitry Dulepov [typo3] wrote:
> Your BE charset. It is different depending on the language. Most likely > yours is iso-8859-1. > Of course... I should have known that. D'oh! Oh well... the site's virtually fully implemented now, so I'm not going to convert it to UTF8... I've heard that's a nightmare! _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Andrew Plank wrote:
> Lars Haendler wrote: >> Are you sure you did not put html entities in locallang file? Those >> should better be stored as CDATA. >> >> What exactly does the error message say? How does the line look it >> refers to? >> >> Greetings >> Lars > > If I copy'n'paste from a source, and that source includes the Danish æ ø > å characters, and then save the aforementioned locallang.xml file in > Quixplorer, when I try to view the extension in the FE that makes use of > this locallang file, I get an error, for example: > > The file > "/var/www/vhosts/*******.dk/httpdocs/typo3conf/ext/sr_email_subscribe/pi1/dk.locallang.xml" > is no TYPO3 language file! > > However, if I paste the copied data directly into a text editor (in my > case Dreamweaver) and then FTP the file up to the server, it works fine. > Obviously, when subsequently editing the file in Quixplorer, the UTF8 > entities are converted to for example Ã¥ = å > > The only difference that I can think of, is that when saving the file in > Dreamweaver, it saves it and encodes it as a UTF8 file, whereas > Quixplorer doesn't. > > But I could be wrong... Ah, okay ... got you wrong on your problem. Dmitry's answer will help your more. Greetings Lars _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Programmatically saving/loading .t3d files? | Mike | typo3-english@lists.netfielders.de | 1 | 30.05.2008 15:38 |
| [TYPO3] Programmatically saving/loading t3d files? | Mike | typo3-english@lists.netfielders.de | 0 | 29.05.2008 20:14 |
| [TYPO3] charset/utf8/arg! | news.netfielders.net | typo3-english@lists.netfielders.de | 3 | 13.05.2008 07:37 |
| [TYPO3] UTF8 to Ascii | Sancar Saran | typo3-english@lists.netfielders.de | 2 | 06.10.2007 14:09 |
| [TYPO3-ttnews] Related files - change maximum allowed files pernews item. | Jurvtk | typo3-project-tt-news@lists.netfielders.de | 1 | 18.09.2007 20:35 |