Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-2008, 01:58 PM
WebOfWebs
 
Posts: n/a
accent headache

Why wont the accents show up ?
i have a page (utf-8) that calls a list of spanish cities from a mysql table
(utf8) via php.
The database table has the correct names (with accents)
The php page will show the correct names if i type them in. (also in source i
see letters with accents)
But the php that grabs the names and displays it - will only show [squares]
instead of accented letters.

Please anyone, whats going on ??



Reply With Quote
  #2 (permalink)  
Old 03-20-2008, 02:13 PM
WebOfWebs
 
Posts: n/a
Re: accent headache

More info...
with the page encoded to utf8:
i can type accents and they show correctly.
The php echo $spanishcity does not - it shows squares.
With the page encoded to charset=iso-8859-1:
i can not type accents ( i have to use alt+number )
but the php does work correctly

aaaaaaaahhhhhhhhhhh

Reply With Quote
  #3 (permalink)  
Old 03-20-2008, 06:06 PM
Michael Fesser
 
Posts: n/a
Re: accent headache

..oO(WebOfWebs)

>Why wont the accents show up ?
> i have a page (utf-8) that calls a list of spanish cities from a mysql table
>(utf8) via php.
> The database table has the correct names (with accents)


Are the database columns defined as UTF-8?

Do you send a "SET NAMES utf8" as the very first query to set the
connection character set?

Are the pages delivered with a correct HTTP Content-Type header with
charset parameter?

Micha
Reply With Quote
  #4 (permalink)  
Old 03-20-2008, 09:36 PM
Miguel
 
Posts: n/a
Re: accent headache

Hi.

Look here, perhaps you find the answer.
http://dev.mysql.com/doc/refman/5.0/...alization.html


"WebOfWebs" <webforumsuser@macromedia.com> escribió en el mensaje de
noticias news:frtn27$8g2$1@forums.macromedia.com...
> Why wont the accents show up ?
> i have a page (utf-8) that calls a list of spanish cities from a mysql
> table
> (utf8) via php.
> The database table has the correct names (with accents)
> The php page will show the correct names if i type them in. (also in
> source i
> see letters with accents)
> But the php that grabs the names and displays it - will only show
> [squares]
> instead of accented letters.
>
> Please anyone, whats going on ??
>
>
>


Reply With Quote
  #5 (permalink)  
Old 03-21-2008, 12:16 PM
WebOfWebs
 
Posts: n/a
Re: accent headache

Thanks for the help - but i still have a problem

my database details
version:5.0.45-community-nt
char set: utf8 (utf-8 unicode)
collation: utf8_general_ci

my table 'places' has records like Cataluña (the n has a tilda)

1)
connection script: //$q="SET NAMES 'utf8' "; $r=mysqli_query($DBlink,$q) or
die(mysqli_error($DBlink)." Q=".$q);
page header: <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
= the drop down list of places shows correctly

2)
page header: <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
= the drop down has squares

3)
using SET NAMES and page=utf-8
= drop down displays correctly

So, i am thinking that setup(3) is the best for my english/spanish website
I have done the display data, next i will build the user-input form.

I have another problem...
i have an include page: require_once 'newdropdown.php'; which is just php
(triggered by javascript)
SELECT moreplaces...
echo '<select name="new">...

Strangely this always displays incorrectly, no matter what i try.
How can i make this second dropdown display correctly ??



Reply With Quote
  #6 (permalink)  
Old 03-21-2008, 12:17 PM
WebOfWebs
 
Posts: n/a
Re: accent headache

Hum,
in my include page, i tried adding the SET NAMES query
And now the second dropdown displays correctly.

But why do i have to specify this query again - its already in my connection script ?
Reply With Quote
  #7 (permalink)  
Old 04-01-2008, 10:40 AM
Boujoli
 
Posts: n/a
Re: accent headache

Hi,
I would need some help if you had solve the accent problems.
I have the same problem with french accents over vowels.
Since I am a beginner and I mainly use creation mode, would you tell me how to
configurate DW3 to have the rght accents returned from the database ?
Greetings.
(I rather speak french)

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:50 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Cards | Credit Counseling | Gas Suppliers | Internet Advertising | Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114