Some strange problems with database - anyone other faced?

Started on the old forum in August 2011 · view the original in the archive · old links redirect here

3 replies · 623 views · started 15 years ago · 1 min read

3 participants
Mysterio Lead · 630 posts #1

Hello guys,

I am facing some strange problems working on database!

One is, wrong displaying of characters. When I created a website in my localhost, i can save non-ASCII characters in database and deal as I want with them, but when I moved the site to a live server, those characters are not displaying as expected.

Another problem is, I can insert whatever data using the "INSERT" query, but when it comes to "UPDATE" it doesn't work and no error is being showed. Does the characters has to do with this?

Thanks in advance!

mysterio.al - programming is a functional art

something else Fellow · 2,296 posts #2

Sounds like you are using the wrong character encoding i would try something like:

ALTER TABLE table CHANGE column column TEXT CHARACTER SET utf8;

Added after 4 minutes:

may be easier to just recreate the tables to utf8.... rather than do it for each column

kei_ki7 Senior · 431 posts #3

Also try to change the encoding in header

Did I help you? You can help me too Your donations will help me finance my studies.

Mysterio Lead · 630 posts #4

Thank you guys, tried already - no result!

I note that in local server is everything ok, this happens in live server only where the site is only moved with Filezilla and database imported using SQLYog. Does server configurations has to do with it?

mysterio.al - programming is a functional art

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close