Buy Cheap Software - Discount Software
pimpMyJoomla Board
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Fields not properly saved (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Fields not properly saved

#303
alberth (User)
Fresh Boarder
Posts: 4
graphgraph
Fields not properly saved 2007/05/13 12:11 Karma: 0  
Hello,

Using Joomla 1.0.11 with UTF8 database, I am using polish Joomla version.

I am not using non-latin characters as ID's in Forme.
If I change the Forme tables to UTF8 only the first field is added to the database. If revert the tables back to latin-general all the data is save in the first field Like so:

test? Pesel=test? Poradnia=test? Wizyta=test? submitbutton=Submit?

Greetings,
Albert
  The topic has been locked.
#327
alex (Admin)
Admin
Posts: 301
graph
Re:Fields not properly saved 2007/05/14 12:38 Karma: 8  
Thanks! I added this to the bug tracker. I'll take care of it.
  The topic has been locked.
#520
thejackal (User)
Fresh Boarder
Posts: 2
graphgraph
Re:Fields not properly saved - UTF8 problem solved 2007/05/18 03:06 Karma: 0  
Hi,

I found the bug with UTF-8 solution.

Forme use for parameter delimiter a special charakter -> "¶n"
This character (¶ - may be Pilcrow Sign ??? ) has not been correctly interpreted in UTF-8 coded database.

Solution: I change this sign to | (Vertical line) in source code.
Files :
- components/com_forme/forme.php 3 times
- administrator/components/com_forme/admin.forme.php 2 times
and now my utf8_slovak_ci collated table contain :
Code:

 firstname=Tóth| name=Tibor| firm=Joolma| ...


Forme work nice for me with UTF-8 collation.

Next problem with UTF8 is - wrong export data to Excel.
I found nice tutorial here : http://www.weberdev.com/get_example-3701.html
Based on this tutorial I made changes in administrator/components/com_forme/admin.forme.php file, in function exportdata.
At the end of function I made this chages:
Code:

     header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");     header ("Last-Modified: " gmdate("D,d M YH:i:s") . " GMT");     header ("Cache-Control: no-cache, must-revalidate");     header ("Pragma: no-cache");     //header ("Content-type: application/x-msexcel");     //header ("Content-Disposition: attachment; filename=\"forme.xls\"" );     header ("Content-type: application/csv");     header ("Content-Disposition: attachment; filename=\"forme.csv\"" );     //print $output;     $unicode_str_for_Excel chr(255).chr(254).mb_convert_encoding$output'UTF-16LE''UTF-8');     print $unicode_str_for_Excel;


Now, my export working fine to Excel, with correct coded characters.

Hope, help this !

Tibor

Post edited by: thejackal, at: 2007/05/18 03:07
  The topic has been locked.
#525
alex (Admin)
Admin
Posts: 301
graph
Re:Fields not properly saved - UTF8 problem solved 2007/05/18 09:30 Karma: 8  
Thanks a lot.
  The topic has been locked.
#567
alberth (User)
Fresh Boarder
Posts: 4
graphgraph
Re:Fields not properly saved 2007/05/19 11:46 Karma: 0  
All the tables and fields are change to utf-8 general.

I change forme.php and admin.forme.php, the thing I changed was the seperator to | with and without n

However, the mails send are ok but the data is still stored in the first field.
Only difference is that the separator is different:
test1|Pesel=test2|Poradnia=test3|Wizyta=test4|submitbutton=Submit|

My first field name is "Nazwisko" which is not show before the stored data.

Albert
  The topic has been locked.
#571
alex (Admin)
Admin
Posts: 301
graph
Re:Fields not properly saved 2007/05/19 11:56 Karma: 8  
I already fixed this issue. It will be published on 1.0.3
  The topic has been locked.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop