/    Sign up×
Community /Pin to ProfileBookmark

iconv problems

I have data in Microsoft SQL 2005 server that is in CP1250 charset.
I have to read this data and write it to PostgreSQL database that is in UTF-8 charset. Both databases are on the same server.

The php script is running on Windows 2003 server and IIS server with 5.2.5 php.

I am executing the script from a command line window.

For conversion I use:

[code=php]$value2 = iconv(‘CP1250’, ‘UTF-8’, $value);[/code]

Iconv does not convert correctly latin caracters with carons. (c,s,z with caron).
What am I missing here?

thanx

to post a comment
PHP

1 Comments(s)

×

Success!

Help @_Matej spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...