Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » No support for german charset?
No support for german charset? [message #12884] Mon, 09 April 2007 10:04 Go to next message
Eclipse UserFriend
Originally posted by: robert.mueller2.gmx.de

Hello,

I have a problem with german charsets in the pdt-Environment:

if I try to use the line

$name = str_replace("
Re: No support for german charset? [message #12896 is a reply to message #12884] Mon, 09 April 2007 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arcadius.menelic.com

Robert Mueller wrote:
> Hello,
>
> I have a problem with german charsets in the pdt-Environment:
>
> if I try to use the line
>
> $name = str_replace("�","ä",$name);
>
> I get an undefined charset after saving the file and reloading it in a
> texteditor. It looks like
>
> $name = str_replace("�#",ä",$name);
>
> If I try then to correct it in the texteditor and reload the file in
> Eclipse, it looks like
>
> $name = str_replace("","ä",$name);
>
> Has anyone an idea whats wrong or is it a bug, that the PDT-Module doesn't
> support german charset?
>
> Regards
>
>

Hi.
It seems that your eclipse is not using UTF encoding for the file you're
editing.

Right-click on the file name to view its property.
In the "Text File Encoding" section, make sure that you select UTF-8 (or
maybe UTF-16) if it's not selected yet.Then, try again.

Arcadius.
Re: No support for german charset? [message #12932 is a reply to message #12884] Mon, 09 April 2007 15:29 Go to previous message
Eclipse UserFriend
see also my earlier posts, before this newsgroup went over from
eclipse.tools.php to this group:
------------------------------------------------------
> How can I save my php-files in plain CP1252? Today I experienced a problem
> with encoding:
> - I open a file that has been encoded as ANSI (=CP1252)
> - That file contains an ? (euro-sign), e.g. echo "price is ?50,- "
> - The php-editor in eclipse sees it as utf-8 and saves it as utf-8.
> - when running the php-file from a browser we get strange characters
> - when the file is opened in a editor that understands ANSI, it will
> show blocks [] in stead of euro-signs.
> - If I want to save the file in a non-utf encoding, eclipse refuses to
> do so, because the contains characters thtat are not in that characterset.
>
> My workspace use
> text file encoding -> default (CP1252)
>
> Saving the file as US ASCII didn't help.
> I experienced the problem also with characters lijke
Previous Topic:how to implement code hit from xml?
Next Topic:Feature Request (Syntax warning and errors)
Goto Forum:
  


Current Time: Wed Apr 30 22:40:27 EDT 2025

Powered by FUDForum. Page generated in 0.05795 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top