Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Page layouts and display templates encoding problem

$
0
0

Hello,

I'm using design manager in different site collections to create many display templates for search webparts and some page layouts.

When I'm tring to use Spanish characters like accents, these characters are changed.

For example, this is the .HTML file of a page layout:

<span>Campos solo visibles en la vista de Administración</span>

The generated .aspx page have the same line, but SharePoint displays it like this:

<span>Campos solo visibles en la vista de Administración</span>

Also, Display templates in a different site have a more extrange behaviour. The .HTML file has this line:

var titulo = "Dirección:";

And the .js file generated by the design manager has:

var titulo = "Direcci�n:";

So, the problem here is in the conversión process. The Word is rendered in the page like this:

<span class="ms-soften" id="FieldTitle"> Direcci�n: </span>

I tried to modify the files either with SharePoint designer or notepad using a network drive and I got the same results.

I'm using SharePoint 2013 with service pack 1 and I have this problem in all other machines which have the same installation. I have tested in another environment without service pack 1, and this environment does not have this problem.

IIS have the same configuration for .NET globalization in the web application in the two different environments (SharePoint with service pack 1 and without it). Configuration is the same for all web applications.

SharePoint Web services is the only IIS Web site that have a different encoding, but is the same for SharePoint with and without service pack 1, so I don't think this is the problem.

I also tried using &oacute; in the page layout example. Here the .HTML file shows

<span>Campos solo visibles en la vista de Administraci&oacute;n</span>

the conversion process to the .aspx file automatically changed it to

<span>Campos solo visibles en la vista de Administración</span>

And the results in the rendered page are the same

<span>Campos solo visibles en la vista de Administración</span>

Does anyone have experimented this problem?

Thank you

Miguel



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>