Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:04
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  Problem with Amfphp MS2
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Problem with Amfphp MS2  (Read 2279 times)
Alfonso Fernández Abad
Server what's that
*
Posts: 11


briggs ic

webmaste@spanishpromotions.com
View Profile WWW Email
« on: 12/12/05, 10:21 »

First ,thanks again for this great site,
I'm doing the backend for a website with amfphp , everythings works fine, very fast and simple(thanks for your examples and tutorials)
The only problem is that

I get the correct charset for Spanish ( Ñ an á é í ó ú ) but the character " " is converted to a box as you can see in the image ,
and some break lines are added .

my gateway.php seems to be ok , 
      $gateway->setCharsetHandler( "utf8_decode", "ISO-8859", "ISO-8859" );
i have tryed with
   $gateway->setCharsetHandler( "utf8_decode", "ISO-8859-1", "ISO-8859-1", "ISO-8859-1" );
    $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" );     
... and every combinations , but i think the problem is not in my gateway.php becose y get the (ñ.á..etc) characters correctly.
But i don't know where can be the error
Can any one help me  ?
I would like to contribute with this great site, but first i have to control this issues,
thanks in advance , and sorry for my non-perfect english i hoppe you can understand.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 12/12/05, 14:36 »

Strange, do you have some encoding in your database?
Are "normal" doble quotes, or those from Word?
Can you replace doble with single quotes on server side?

Jorge
Logged

Alfonso Fernández Abad
Server what's that
*
Posts: 11


briggs ic

webmaste@spanishpromotions.com
View Profile WWW Email
« Reply #2 on: 12/13/05, 06:03 »

Thanks Jorge,
Yes i think probably there is a problem with "ms Word", becose the people who are writting the news are working with an old backend (html-php based, while i'm doing the new in flash-amf) and they pasted the text from word.
Now i have to clean the text in the server side, i can replace the " of word by " normal character using a mysql query with the function REPLACE() or something similar, thats rigth?
but  how can i replace the double breaklines ?
Thanks Jorge, i'm finishing my backend and i'm looking for share with everybody the code, becose  can be used with  any Mysql table , doing a few change's  in a config file.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 12/13/05, 07:47 »

I have had similar problems with copy&paste from word. You need to recreate steps, I mean, copy&paste from word (it have "opening quotes" and "closing quotes") to identify those characters when receiving the form and use to replace. Based on which database you're using and also encoding, the character could vary. Again if you want to replace inside the SQL, identify those characters first in the string, then replace. Sometimes you need to know ASCII or some other identifier because copy&paste fails when writing your SQL or PHP script.

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!