Using a PHP function will not help you at all for map labels since 
p.mapper uses pure Mapserver functionality for rendering the map. But 
this should help:

http://mapserver.org/mapfile/label.html?highlight=encoding

armin

On 29/07/2009 21:42, Sandra Liliana Moreno Mayorga wrote:
>  
> 
> 
> 
> Hi Everybody   
> 
> I'm working MapServer and pmapper 3.2, I have a Postgres layer  , when I see 
> the imagen generated by MapServer, this not recognizes the special 
> characteres, I have a php función called 'tildes'
> 
>     function tildes($texto,$remplazo=NULL){
> 
>                 if($remplazo==NULL){
> 
>                             $remplazo=array(
> 
>                                         "Ã??"=>"Á",
> 
>                                         "É"=>"É",
> 
>                                         "Ã??"=>"Í",
> 
>                                         "Ó"=>"Ó",
> 
>                                         "Ú"=>"Ú",
> 
>                                         "á"=>"á",
> 
>                                         "é"=>"é",
> 
>                                         "í"=>"í",
> 
>                                         "ó"=>"ó",
> 
>                                         "ú"=>"ú",
> 
>                                         "ñ"=>"ñ",
> 
>                                         "ÃÂ??"=>"Á",
> 
>                                         "á"=>"á",
> 
>                                         "É"=>"É",
> 
>                                         "é"=>"é",
> 
>                                         "ÃÂ??"=>"Í",
> 
>                                         "í"=>"í",
> 
>                                         "Ó"=>"Ó",
> 
>                                         "ó"=>"ó",
> 
>                                         "ú"=>"ú",
> 
>                 "ñ"=>"ñ",
> 
>                                         "Á"=>"Á",
> 
>                                         "É"=>"É",
> 
>                                         "Í"=>"Í",
> 
>                                         "Ó"=>"Ó",
> 
>                                         "Ú"=>"Ú",
> 
>                                         "á"=>"á",
> 
>                                         "é"=>"é",
> 
>                                         "í"=>"í",
> 
>                                         "ó"=>"ó",
> 
>                                         "ú"=>"ú",
> 
>                                         "ñ"=>"ñ",
> 
>                                         "Ñ"=>"Ñ"
> 
>                             );
> 
>                 }
> 
>                 if(is_array($remplazo)){
> 
>                             $tmp=$texto;
> 
>                             foreach($remplazo as $que=>$por){
> 
>                                         $tmp=str_replace($que,$por,$tmp);
> 
>                             }
> 
>                             return $tmp;
> 
>                 }
> 
>                 return "Error,El arreglo de remplazo no es correcto.";
> 
>     }
> 
> I Want to know if is posible called this funcion in any place for to fix de 
> image generated.
> 
> Thanks for all
> 
> And excuse me for my english
> 
>  
> 
>  
> 
> Sandra Liliana Moreno
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to