# WebMapServer Swedish language problem

**URL:** <https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361>\
**Category:** WebForms\
**Created:** [February 6, 2013, 12:22pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361 "2013-02-06T12:22:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvin](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@alvin](https://community.thinkgeo.com/u/alvin)\
**Post date:** [February 6, 2013, 12:22pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/1 "2013-02-06T12:22:22Z")

</div>

Hi&nbsp;all,

We&nbsp;have&nbsp;a&nbsp;Map&nbsp;server&nbsp;that&nbsp;is&nbsp;providing&nbsp;sweden&nbsp;map&nbsp;data,&nbsp;and&nbsp;&nbsp;when&nbsp;caching&nbsp;is&nbsp;enabled,&nbsp;the&nbsp;swedish&nbsp;characters&nbsp;on&nbsp;the&nbsp;map&nbsp;are&nbsp;messed&nbsp;up&nbsp;.

![](https://community.thinkgeo.com/uploads/default/original/1X/6aee63a1d0ad456f314a337d514cde14797f39ed.png)

We&nbsp;think&nbsp;these&nbsp;two&nbsp;files&nbsp;are&nbsp;causing&nbsp;the&nbsp;problem:&nbsp;/bin/WebMapServer.dll&nbsp;and&nbsp;/bin/WebMapServer.pdb,&nbsp;as&nbsp;everything&nbsp;works&nbsp;Ok&nbsp;without&nbsp;these&nbsp;two&nbsp;files,&nbsp;but&nbsp;we&nbsp;need&nbsp;caching&nbsp;to&nbsp;speed&nbsp;up&nbsp;the&nbsp;map.

Does&nbsp;anyone&nbsp;have&nbsp;any&nbsp;idea&nbsp;how&nbsp;to&nbsp;fix&nbsp;this?&nbsp;Your&nbsp;help&nbsp;is&nbsp;much&nbsp;appreciated!

&nbsp;

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [February 7, 2013, 3:25am UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/2 "2013-02-07T03:25:12Z")

</div>

&nbsp;Hello&nbsp;alvin,

&nbsp;  
Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;we&nbsp;did&nbsp;some&nbsp;test&nbsp;but&nbsp;does&nbsp;not&nbsp;recreate&nbsp;your&nbsp;problem,&nbsp;below&nbsp;is&nbsp;the&nbsp;code&nbsp;we&nbsp;use&nbsp;to&nbsp;test:  
`protected void Page_Load(object sender, EventArgs e)        {            if (!Page.IsPostBack)            {                Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));                Map1.MapUnit = GeographyUnit.DecimalDegree;                InMemoryFeatureLayer inmLayer = new InMemoryFeatureLayer();                inmLayer.Open();                FeatureSourceColumn column1 = new FeatureSourceColumn("name", "string", 20);                inmLayer.Columns.Add(column1);                inmLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;                inmLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(LineStyles.River1);                inmLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(TextStyles.LocalRoad1("name"));                Collection<Feature> features = new Collection<Feature>();                features.Add(new Feature("LINESTRING (30 10, 60 50,29 11)"));                features.Add(new Feature("LINESTRING (80 50, 80 55,90 48)"));                features.Add(new Feature("LINESTRING (76 22, 39 64,15 37)"));                features[0].ColumnValues["name"] = "GÄRDSVÄGEN";                features[1].ColumnValues["name"] = "RYTTARVÄGEN";                features[2].ColumnValues["name"] = "STORAFRÖSUNDA";                for (int i = 0; i < 3; i++)                { inmLayer.InternalFeatures.Add(features[i]); }                LayerOverlay layerOverlay = new LayerOverlay();                layerOverlay.ServerCache.CacheId = "test";                layerOverlay.ServerCache.CacheDirectory = @".....";                layerOverlay.ClientCache.CacheId = "test";                layerOverlay.Layers.Add(inmLayer);                Map1.CurrentExtent = inmLayer.GetBoundingBox();                Map1.CustomOverlays.Add(layerOverlay);            }        }`  
I&nbsp;guess&nbsp;the&nbsp;problem&nbsp;you&nbsp;mean&nbsp;is&nbsp;the&nbsp;label&nbsp;display&nbsp;in&nbsp;the&nbsp;street&nbsp;corner,&nbsp;is&nbsp;that&nbsp;right?  
&nbsp;  
If&nbsp;so&nbsp;I&nbsp;think&nbsp;it's&nbsp;a&nbsp;bug&nbsp;for&nbsp;our&nbsp;split&nbsp;which&nbsp;want&nbsp;the&nbsp;label&nbsp;looks&nbsp;better,&nbsp;can&nbsp;you&nbsp;check&nbsp;if&nbsp;you&nbsp;have&nbsp;set&nbsp;TextStyle.SplineType?&nbsp;If&nbsp;so&nbsp;could&nbsp;you&nbsp;please&nbsp;set&nbsp;it&nbsp;to&nbsp;SplineType.None&nbsp;and&nbsp;see&nbsp;the&nbsp;resut?  
&nbsp;  
Also&nbsp;is&nbsp;that&nbsp;possible&nbsp;you&nbsp;can&nbsp;provide&nbsp;your&nbsp;data&nbsp;in&nbsp;this&nbsp;area&nbsp;to&nbsp;us&nbsp;and&nbsp;we&nbsp;can&nbsp;debug&nbsp;on&nbsp;it&nbsp;and&nbsp;fix&nbsp;the&nbsp;bug?  
&nbsp;  
Regards,  
&nbsp;  
Gary&nbsp;

---

<div class="post-metadata">

**Author:** ![alvin](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@alvin](https://community.thinkgeo.com/u/alvin)\
**Post date:** [February 19, 2013, 12:20pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/3 "2013-02-19T12:20:41Z")

</div>

Hi&nbsp;Gary,

Thanks&nbsp;for&nbsp;the&nbsp;support.&nbsp;Yes,&nbsp;the&nbsp;problem&nbsp;is&nbsp;the&nbsp;label&nbsp;display&nbsp;in&nbsp;the&nbsp;street&nbsp;corners.

I&nbsp;couldn't&nbsp;reproduce&nbsp;the&nbsp;bug&nbsp;on&nbsp;my&nbsp;development&nbsp;machine,&nbsp;but&nbsp;here's&nbsp;a&nbsp;screenshot&nbsp;from&nbsp;our&nbsp;client&nbsp;showing&nbsp;the&nbsp;same&nbsp;area&nbsp;when&nbsp;the&nbsp;displays&nbsp;are&nbsp;working&nbsp;properly.

![](https://community.thinkgeo.com/uploads/default/original/2X/5/558bca9bd07eb45397674583f589eb084ce729c2.png)

The&nbsp;map&nbsp;data&nbsp;is&nbsp;quite&nbsp;big,&nbsp;so&nbsp;it's&nbsp;not&nbsp;practical&nbsp;to&nbsp;provide&nbsp;it&nbsp;here,&nbsp;but&nbsp;the&nbsp;map&nbsp;data&nbsp;is&nbsp;"Navteq&nbsp;SWE&nbsp;Q2&nbsp;2011"&nbsp;with&nbsp;the&nbsp;following&nbsp;default&nbsp;city:  
  
&nbsp;&nbsp;&nbsp;&nbsp;region&nbsp;=""  
  
&nbsp;&nbsp;&nbsp;&nbsp;city&nbsp;="Solna"  
  
&nbsp;&nbsp;&nbsp;&nbsp;province&nbsp;="AB"

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [February 19, 2013, 4:44pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/4 "2013-02-19T16:44:11Z")

</div>

Hi&nbsp;Alvin,&nbsp;  
  
  
  
You&nbsp;stated&nbsp;that&nbsp;there&nbsp;is&nbsp;a&nbsp;difference&nbsp;between&nbsp;the&nbsp;maps&nbsp;provided&nbsp;from&nbsp;the&nbsp;cache&nbsp;and&nbsp;the&nbsp;maps&nbsp;rendered&nbsp;at&nbsp;'runtime'.&nbsp;  
  
What&nbsp;about&nbsp;replacing&nbsp;the&nbsp;incorrect&nbsp;tiles&nbsp;in&nbsp;the&nbsp;cache&nbsp;with&nbsp;'new'&nbsp;tiles&nbsp;that&nbsp;don't&nbsp;contain&nbsp;the&nbsp;incorrect&nbsp;labels?&nbsp;You&nbsp;can&nbsp;do&nbsp;this&nbsp;by&nbsp;simply&nbsp;deleting&nbsp;out&nbsp;all&nbsp;the&nbsp;existing&nbsp;tiles&nbsp;in&nbsp;your&nbsp;cache&nbsp;and&nbsp;allowing&nbsp;your&nbsp;users&nbsp;to&nbsp;repopulate&nbsp;the&nbsp;cache&nbsp;simply&nbsp;accessing&nbsp;the&nbsp;map&nbsp;and&nbsp;panning&nbsp;and&nbsp;zooming&nbsp;around.

---

<div class="post-metadata">

**Author:** ![alvin](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@alvin](https://community.thinkgeo.com/u/alvin)\
**Post date:** [February 20, 2013, 12:00pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/5 "2013-02-20T12:00:21Z")

</div>

Hi&nbsp;Ryan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;tried&nbsp;rebuilding&nbsp;the&nbsp;cache,&nbsp;but&nbsp;it’s&nbsp;still&nbsp;the&nbsp;same.

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [February 20, 2013, 4:53pm UTC](https://community.thinkgeo.com/t/webmapserver-swedish-language-problem/6361/6 "2013-02-20T16:53:14Z")

</div>

I&nbsp;am&nbsp;confused&nbsp;how&nbsp;the&nbsp;cached&nbsp;data&nbsp;can&nbsp;be&nbsp;different&nbsp;than&nbsp;the&nbsp;'runtime'&nbsp;data.

Perhaps&nbsp;we&nbsp;do&nbsp;not&nbsp;have&nbsp;a&nbsp;good&nbsp;understanding&nbsp;of&nbsp;where&nbsp;your&nbsp;data&nbsp;is&nbsp;coming&nbsp;from&nbsp;or&nbsp;what&nbsp;is&nbsp;rendering&nbsp;your&nbsp;cached/noncached&nbsp;data?

In&nbsp;an&nbsp;e-mail&nbsp;you&nbsp;sent&nbsp;to&nbsp;the&nbsp;sales&nbsp;team&nbsp;you&nbsp;were&nbsp;more&nbsp;specific&nbsp;that&nbsp;data&nbsp;that&nbsp;was&nbsp;_not-cached_,&nbsp;rendered&nbsp;_correctly_,&nbsp;and&nbsp;that&nbsp;the&nbsp;_cached&nbsp;_data&nbsp;rendered&nbsp;_incorrectly_.

It&nbsp;would&nbsp;seem&nbsp;that&nbsp;the&nbsp;cached&nbsp;data&nbsp;was&nbsp;being&nbsp;rendered&nbsp;by&nbsp;another&nbsp;control&nbsp;(different&nbsp;version&nbsp;or&nbsp;code)&nbsp;than&nbsp;the&nbsp;non-cached&nbsp;data&nbsp;or&nbsp;by&nbsp;a&nbsp;two&nbsp;controls&nbsp;using&nbsp;different&nbsp;code&nbsp;behind&nbsp;the&nbsp;scenes..
