005
14.07.2006, 18:30 Uhr
FloSoft
Medialer Over-Flow (Administrator)
|
Habs nun per Input-Filter gelöst, zwar nicht gerade performant, aber was solls, hab ja zeit 
C++: |
<?php // $Id: DoxyFilter.php 791 2006-07-14 16:29:43Z FloSoft $ // // Copyright (c) 2005-2006 Settlers Freaks (sf-team at siedler15.ra-doersch.de) // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the // Free Software Foundation; either version 2, or (at your option) any // later version. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE.
# read input file $file = join('', @file($argv[1]));
# strip windows carriage returns $file = str_replace("\r", "", $file);
# convert utf-8 to iso encoding $file = mb_convert_encoding($file, "ISO-8859-15", "auto");
# output changed file echo $file;
?>
|
Es ging eigentlich immer nur um sonderzeichen wie ä,ö,ß, usw, sonstige utf-8 chars sind nicht ja eigentlich nicht drin.
Nun klappts prima
Bearbeitung: |
argh codeparser ist zu dumm zum ka...n
|
-- class God : public ChuckNorris { }; Dieser Post wurde am 14.07.2006 um 18:31 Uhr von FloSoft editiert. |