zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

works with special caracterers dont appear in jqgrid render mode #872

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: igor...@gmail.com (October 17, 2010 22:03:15)

What steps will reproduce the problem?

  1. works with special caracterers dont appear in jqgrid render mode

my solution

class Bvb_Grid_Deploy_JqGrid

public function renderPartData(){ ... foreach ( $row as $key=>$val ) { $d[] = $val['value']; } ... }

to

public function renderPartData(){ ... foreach ( $row as $key=>$val ) { $d[] = iconv("iso-8859-1","utf-8",$val['value']); } ... }

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=477

imonteiro commented 11 years ago

From igor...@gmail.com on October 17, 2010 22:18:27 complement for filters protected function convertRequestParams($params=null) ... foreach ($filteredFields as $filter=>$val) { $this->setParam($filter,$val); } ... }

to

... foreach ($filteredFields as $filter=>$val) { $val = iconv("utf-8","iso-8859-1",$val); $this->setParam($filter,$val); } ...

imonteiro commented 11 years ago

From martin.m...@gmail.com on January 07, 2011 15:05:59 Not sure if this is really problem of jqGrid deploy class. I believe that your data are not in utf-8, but your web page is set to this characterset. Character problems would happen also with Table deploy class. Calling implicitly iconv() methods would decrees the spead of most other users.

Please provide me with some example page where I will see how it renders wrongly if you want that I work on this issue.

imonteiro commented 11 years ago

From bento.vi...@gmail.com on January 07, 2011 15:32:08 Hi,

I think Martin is right.

You are using multiple charsets in your page, that's why you need to convert them.

Change your current charset to fixe that.

Best Regards, Bento Vilas Boas

imonteiro commented 11 years ago

From david.a...@gmail.com on November 29, 2012 16:45:21 Me too.

I dont think that it is utf-8.

I have several characters and it dont alls happens that seems. Only when it go to Zend<->ZFdatagrid and go out (screen).

any help more?

imonteiro commented 11 years ago

From martin.m...@gmail.com on November 29, 2012 22:44:26 As mentioned in my comment before, provide me please with example page where it doesn't work and I will look at the problem in detail.