TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Saving UTF8 files in BE

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 18.08.2008, 14:10
Andrew Plank
Gast
 
Beiträge: n/a
Standard [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 18.08.2008, 14:12
Lars Haendler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 18.08.2008, 14:42
Andrew Plank
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 18.08.2008, 14:50
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 18.08.2008, 15:37
Andrew Plank
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 18.08.2008, 15:38
Lars Haendler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Saving UTF8 files in BE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:16 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39