Welcome to WebmasterWorld Guest from 54.159.250.110

Forum Moderators: phranque

Message Too Old, No Replies

web in mobile devices

   
8:23 pm on Jul 26, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I have a problem,
one friend that has a blackberry says that my css menu dont show up at all on her mobile.
I downloaded the program mobilizer, and as per that program the 4 mobiles they had, the menu worked perfect, however the site where seen in big, so I doubt of the correct function of that program.

So my questions are:
1. I dont have any internet mobile at all. Is there any working program or website where you can see your website in diferent devices as iphone, blackberry, ipod etc...

2. My site has over 500 pages in 3 languages and I dont use any content program except dreamweaver, and I know I should optimize it for mobile devices. Is there a way to do it easily, not to do it page by page?

The site uses HTML 4.01 Transitional, css, php, mysql, some javascritp and ajax.

Any recomendations?
Thanks in advance,
Helen
11:53 pm on Jul 26, 2011 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



my first stop would be the W3C mobileOK Checker:
http://validator.w3.org/mobile/ [validator.w3.org]
8:34 am on Jul 27, 2011 (gmt 0)

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Interesting check, trouble is that I don't know how much to trust when it reported a pop-up which certainly doesn't exist.
12:46 pm on Jul 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Pranque,
Doing some changes, did not get that bad result,
41 points = acceptable but not perfect.
no extrem error, 2 several,
changing iso to utf-8 as I had it for the latin characters.
when doing some changes will post again.
Helena
10:51 am on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Having problems in changing my charset=iso-8859-1 to charset=UTF-8.

It works perfect on plain text if I write in design mode instead of code mode, then dreamweaver autmatically writes the html version of the special characters.

The problem is with the forms, read I have to put utf-8 in header and as well in form.
This I did, however when I write caon gua, in the email I get cañon guía.
So it does not work with the form, dont know why, and on top I have information that I get from a database that are in latin1_swedish_ci, so the I get as a figure with a ? inside, maybe the database dont have to bee changed to utf-8, maybe some string replace can do it?
However I does not work to fill in latin characters in the form.
Please help, thanks in advance.
Helen
6:27 pm on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Uups, this looks really complicated, dont know if certain, but all files included nead to be coded in utf-8,
and there are many php files included. In dreamweaver I cant choose and dont have the default as utf-8.
So I opened some with notepad, saved them as utf-8, when I upploaded on the pages that where not utf-8 I got some strange signs....
And is it necesarry to change the database also? Please advice.
9:56 pm on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



It's a horrible solution, but if you express all non-ASCII chracters as html entities a word my fingers flatly refuse to type right on the first try then the stated file encoding doesn't matter.
This I did, however when I write caon gua, in the email I get cañon guía.

Yup. What you've got there is UTF-8 encoded text being reinterpreted as ISO-Latin-1.

What language is the database in? Not what human language ;) I mean what computer language? There's almost always some type of encode/decode function to deal with non-ASCII characters, or characters that need to be escaped for other reasons.

And remember that changing the html header's "charset" does not change the actual file, it only changes how the browser reads it. So it has to be composed in-- or changed to-- UTF-8 in the first place.

:: happily patting SubEthaEdit on the head because it will both convert and reinterpret on the fly ::
10:15 pm on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dear Lucy,
Thanks,
As I said the database is in latin1_swedish_ci and handle the characters well.
Just tried a program to convert the files to utf-8 and did not work,
How do I change it to utf-8 except changing the charset?

I dont have any problem with writing the html for the swedish and latin characters, as writing in design mode, dreamweaver does it for you.
10:34 pm on Jul 28, 2011 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



you can use the GNU iconv utility to convert to a different encoding.
there is also a PHP module that provides iconv support.

you might find this thread informative - Character encoding, entity references and UTF-8:
http://www.webmasterworld.com/forum21/11176.htm [webmasterworld.com]
2:49 am on Jul 29, 2011 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



As I said the database is in latin1_swedish_ci and handle the characters well.

Is that a programming language? It sounds like a file encoding.

Just tried a program to convert the files to utf-8 and did not work,

What did it do? That is, in what way did it not work, and how could you tell?

How do I change it to utf-8 except changing the charset?

The "charset" declaration in an html file does not change anything. The only thing it does is tell the user's browser how to interpret any given byte or group of bytes.

You know of course that what travels across the Internet is not abcde... It is just a string of 01001100 et cetera. And then the device at the far end takes those 0's and 1's, puts them into sets of eight, and changes them into displayed characters. The same thing happens at the "near" end when you are typing your text. (Note also that it makes no difference what you did to make the character in the first place: "dead keys", alt + a string of letters, a Swedish keyboard, et cetera. That's another and completely unrelated issue.)

when I write caon gua, in the email I get cañon guía.

Long version: in UTF-8 is four bytes, C3 B1. But the device at the other end doesn't know this. If it thinks the text is supposed to be Latin-1, then your becomes two separate characters, C3 and B1, giving you ñ. (The first letter of the pair will always be because this whole block starts with C3. Another block I'm very familiar with, the UCAS range, always turns into followed by two random letters, because the letters are three sets of two bytes, starting with E1.)

So it does not work with the form, dont know why, and on top I have information that I get from a database that are in latin1_swedish_ci, so the I get as a figure with a ? inside

That question mark is the UTF-8 "I can't deal with this" replacement character. You get it when your original text was in Latin-1 (or other 1-byte encodings including Mac Roman), which uses codepoints that UTF-8 doesn't use. That includes your , along with letters like and that must crop up sooner or later ;)

Is she ever going to get to the point?

Uhm. The point is that if the HTML "charset" declaration says UTF-8, then you have to make your original raw text into UTF-8. Exactly how you do this will depend on your text editor or html editor. There might be a popup or menu item somewhere, or something you change in the Preferences. In extreme cases you might even have to read the manual.

Software error:

Can't locate /home/deploy/webmasterworld/code_format-v6.lib in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at decode-post-v6.lib line 27, <THREADDAT> line 12.

For help, please send mail to the webmaster (it@imninjas.com), giving this error message and the time and date of the error.