473,545 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eclipse, charset and PHP

Hello,

I'm trying to internationaliz e my PHP code, but some of the ISO-8859-2
characters don't show in the browser. I'm namely trying to use Croatian and
Russian, and some of the characters show and most don't. I did the header
(that's the one for Croatian)

header("Content-Type: text/html; charset=iso-8859-2");

but it doesn't work. When I type my strings in Eclipse it is all fine and I
see all the characters that I want. Is it maybe an Eclipse setting I need to
worry about? What am I missing? It is not the browser, as I can see all the
Croatian/Russian pages just fine. Server maybe?

Thanks,

Marko
Jul 17 '05 #1
3 5061
On Thu, 8 Apr 2004 09:48:31 -0400, "Marko" <m_*******@hotm ail.com> wrote:
I'm trying to internationaliz e my PHP code, but some of the ISO-8859-2
characters don't show in the browser. I'm namely trying to use Croatian and
Russian, and some of the characters show and most don't. I did the header
(that's the one for Croatian)

header("Conten t-Type: text/html; charset=iso-8859-2");

but it doesn't work. When I type my strings in Eclipse it is all fine and I
see all the characters that I want. Is it maybe an Eclipse setting I need to
worry about? What am I missing? It is not the browser, as I can see all the
Croatian/Russian pages just fine. Server maybe?


Please define "doesn't work" - this is not a helpful description.

There are many different sorts of "not workingness"; describe what happens and
how it differs from what you expected.

You suggest blaming the server, but you haven't said which one it is. As far
as I know, Apache doesn't involve itself in character set conversions, so if
you're using that it's unlikely to be the server. Might not apply if you're
using another server.

I'm not familiar with Eclipse other than having heard what it is, so can't
comment on what encoding it is using. I wouldn't be surprised if it is using
UTF-8 though. But more information is definitely required.

--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2
Andy Hassall <an**@andyh.co. uk> wrote:
I'm not familiar with Eclipse other than having heard what it is, so can't
comment on what encoding it is using. I wouldn't be surprised if it is using
UTF-8 though. But more information is definitely required.


Ecipse is java. Strings are internally handled as UCS-2. Files are
handled according to the file.encoding (or something like that)
property, transaltion can go wrong here. The OP shoiuld take a decent
editor an fidn out hwat is stored in the file itself.

--

Daniel Tryba

Jul 17 '05 #3
On Thu, 8 Apr 2004 09:48:31 -0400, Marko wrote:
I'm trying to internationaliz e my PHP code, but some of the ISO-8859-2
characters don't show in the browser. I'm namely trying to use Croatian and
Russian, and some of the characters show and most don't. I did the header
(that's the one for Croatian)

header("Content-Type: text/html; charset=iso-8859-2");

but it doesn't work. When I type my strings in Eclipse it is all fine and I
see all the characters that I want. Is it maybe an Eclipse setting I need to
worry about? What am I missing? It is not the browser, as I can see all the
Croatian/Russian pages just fine. Server maybe?


Window->Preferences->Workbench->Editors-> Text file encoding.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2474
by: Tux | last post by:
when I start Eclipse in Mandrake 9.1 I got a message: Warning: missing charset in String to FontSet conversionOpener What can be wrong? Is it error in OS or in Eclipse installation?
0
5582
by: Donovan | last post by:
Hello. I am interested in learning about and using the Eclipse framework and Java -- both of which are new to me. I have prior programming experience with VB.NET and c#.NET; but not Java. As such, I am trying to find the best approach to learning Java and Eclipse. My current approach is to first focus on learning Java, then approach...
16
3985
by: Amir Michail | last post by:
Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that one would be much more productive in python for medium sized projects. Sure, all that Java static typing can be...
0
1983
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for more details". Same for all versions of JBoss. I couldn't find what causes the error. Any help would be much appreciated. My installation is: JDK...
16
10741
by: Ananthu | last post by:
Hi I dont know how to connect mysql with ECLIPSE in RCP application. Please send me the sample code of connecting mysql sever with ECLIPSE in RCP application. Coding Part: RCP Application Codes: Class ApplicationActionBarAdvisor:
15
3665
by: Ramon F Herrera | last post by:
I have been using Eclipse for a few weeks, and IMO there is no better IDE. Since my experience has been so productive -and hence satisfactory- in Java, I would like to use the same IDE environment for C++ programming, the targets would be both Unix and Windows. If there is any Eclipse/C++ developer out there, could you share your...
0
1364
by: Pesho318i | last post by:
hello, I'm writing in the Java forum, because I believe here I can find ppl comfortable with Eclipse. I'd like to install the PLDT plugin for Eclipse, but always run into compatibility problems... I downloaded the C/C++ Eclipse and unzipped the PLDT 2.0 plugin in the Eclipse directory. However, after restarting Eclipse there was no...
7
4495
by: R.A.M. | last post by:
Hello, I have started learning PHP5. I would like to programme in Windows XP and Fedora Linux. I have found two IDEs for PHP (if I understood correctly): - Eclipse PDT, - EasyEclipse for PHP. What is the difference? Which one to choose? I would like to debug my applications. Please help. Thanks in advance. /RAM/
3
6753
by: ravit | last post by:
Hello All, I am trying to execute an application that is developed using eclipse libraries. Jface, SWT , etc. While I execute the application , i have received an exception which I am unable to trace it. TextViewer.setSelection(100,true); is the statement whre it araised. TextViewer is org.eclipse.jface.text.SourceViewer object.
0
7425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.