Hi,
I have a database PostgreSQL entry that includes the string €
which is the euro sign.
When I retrieve the string through a PHP SQL statement and then echo the
result to the browser, it shows the correct euro sign, but in the source
code, it still says € ...
This is a problem to me, because I generate a PDF, and in this it still
says € instead of the euro sign. I have the same behaviour with
signs like '-' and '+'
Any help is very appreciated.
Thanks,georg. 3 3247
Georg Weiler wrote:
Hi,
I have a database PostgreSQL entry that includes the string €
which is the euro sign.
When I retrieve the string through a PHP SQL statement and then echo the
result to the browser, it shows the correct euro sign, but in the source
code, it still says € ...
This is a problem to me, because I generate a PDF, and in this it still
says € instead of the euro sign. I have the same behaviour with
signs like '-' and '+'
Any help is very appreciated.
Thanks,georg.
You have to simply replace the HTML symbols with the real characters
before generating the PDF with str_replace.
-- www.lamib.info
Thanks lamib, it works.
But isn't there a ready-to-use built-in function in PHP that does this
trick?
lamib schrieb:
Georg Weiler wrote:
>Hi,
I have a database PostgreSQL entry that includes the string € which is the euro sign.
When I retrieve the string through a PHP SQL statement and then echo the result to the browser, it shows the correct euro sign, but in the source code, it still says € ...
This is a problem to me, because I generate a PDF, and in this it still says € instead of the euro sign. I have the same behaviour with signs like '-' and '+'
Any help is very appreciated.
Thanks,georg .
You have to simply replace the HTML symbols with the real characters
before generating the PDF with str_replace.
-- www.lamib.info
This is a problem to me, because I generate a PDF, and in this it still
says € instead of the euro sign. I have the same behaviour with
signs like '-' and '+'
So you learned that output specific codes never ever belong into the
database. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SPG |
last post by:
Hi,
I am haveing some problems with getting the correct XML response from a
Servlet.
I have data that contains the euro sign ( 0x80 = ?) and the string I am
trying to print out to the response definitely has the correct formatting..
Here is some sample code:
import java.io.*;
import javax.servlet.*;
|
by: Damjan |
last post by:
Hi All,
I have just spent 2 days tring to display euro sign in html which is
obtained from xml and xsl.
After you would not beleive what kind of research it came down to that
when I
load the page it shows it as (the sqare thing) and when I
reload it
it as € (euro sign).
|
by: Marco W |
last post by:
Hi,
<xsl:value-of select="translate(current(),'€','EUR')" />
only replace the euro sign with 'E' and not 'EUR'. How can I replace
the euro sign in the string 'EUR'?
|
by: gabriel |
last post by:
greetings,
I am currently working on a website where I need to print the Euro
symbol and some "oe" like in "oeuvre".
If I choose this :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html
|
by: Max |
last post by:
My client has decided to use the Euro for the entire web site. Is there an
easy way to get my ASP.NET app to format currency to Euro instead of
US-dollar? Right now it's just reading the server settings, but I'd rather
set this say at start up in the global.asax since other web sites running on
the server may not share this setting.
-Max
| |
by: rphil |
last post by:
I have a problem, I want to enter euro sign (€) into a textbox.. but
after the postback, it is displayed as '?' .Can anybody help me with
this issue.
Thx
|
by: kingski |
last post by:
Any idea about this ?
http://www.developerfusion.co.uk/forums/thread/114379/#114379
"Can any one help me as i am building a shopping cart and it supports
multiple currencies but while sending confirmation mail o customer it does
not show euro sign before amount he paid but it is showing a queston mark
over there. It is working fine with Dollar sign and Pound Sign but this Euro
is creating problem. "
thanks.
|
by: kingski |
last post by:
Any idea about this?
http://www.developerfusion.co.uk/forums/thread/114379/#114379
"Can any one help me as i am building a shopping cart and it supports
multiple currencies but while sending confirmation mail o customer it does
not show euro sign before amount he paid but it is showing a queston mark
over there. It is working fine with Dollar sign and Pound Sign but this Euro
is creating problem. "
thanks.
|
by: Kim |
last post by:
Inserting a record through sql (asp, msaccess textfield), inserting the euro
sign "?" shows up like a questionmark "?" in the output.
I have <%@ LANGUAGE="VBSCRIPT" CodePage=28591 LCID=2077 %at the top of the
page where the insert statement is but still the euro sign is inserted like
something else (by looking at the data in the access database the euro sign
looks like a little square "€")
Whats wrong? Kim
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |