OpenLayers.Filter.Comparison value charecter encoding Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to initialize a WFS Layer?OpenLayers WFS flip coordinatesProblem with WFS filters (BBOX, INTERSECTS)Error when add WFSDWithin WFS filter is not workingWFS query against SQL Server - Returned results not restricted by queryGeoServer WFS and ArcGIS Javascript APIAdding a WFS with ajax from Geoserver using Openlayers3WMS returns but WFS does not return same SRS and BBOX valuesGeoServer WFS viewParams for complex features

Universal covering space of the real projective line?

Project Euler #1 in C++

Why is the change of basis formula counter-intuitive? [See details]

Why does electrolysis of aqueous concentrated sodium bromide produce bromine at the anode?

Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?

How do living politicians protect their readily obtainable signatures from misuse?

Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?

Simple Http Server

Is there public access to the Meteor Crater in Arizona?

What order were files/directories output in dir?

Printing attributes of selection in ArcPy?

How can a team of shapeshifters communicate?

Flight departed from the gate 5 min before scheduled departure time. Refund options

Moving a wrapfig vertically to encroach partially on a subsection title

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

Asymptotics question

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

GDP with Intermediate Production

Can an iPhone 7 be made to function as a NFC Tag?

RSA find public exponent

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

Can you force honesty by using the Speak with Dead and Zone of Truth spells together?

Why weren't discrete x86 CPUs ever used in game hardware?

A term for a woman complaining about things/begging in a cute/childish way



OpenLayers.Filter.Comparison value charecter encoding



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to initialize a WFS Layer?OpenLayers WFS flip coordinatesProblem with WFS filters (BBOX, INTERSECTS)Error when add WFSDWithin WFS filter is not workingWFS query against SQL Server - Returned results not restricted by queryGeoServer WFS and ArcGIS Javascript APIAdding a WFS with ajax from Geoserver using Openlayers3WMS returns but WFS does not return same SRS and BBOX valuesGeoServer WFS viewParams for complex features



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am using vector layer with WFS protocol



var adressVector = new OpenLayers.Layer.Vector("Adress", 
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0"
)
);


I want to get addresses with some filter and adding filters property fo vector layer:



var adressVector = new OpenLayers.Layer.Vector("Adress", 
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0",
"filter": new OpenLayers.Filter.Logical(
type: OpenLayers.Filter.Logical.OR,
filters: [
new OpenLayers.Filter.Comparison(
"type": OpenLayers.Filter.Comparison.EQUAL_TO,
"property": 'name',
"value": "BÖRT De Sem"
)
]
)
)
);


But this filter creates a WFS XML like this.



<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>B�RT De Sem</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>


I mean my vaue property is ugly charectes.



"BÖRT De Sem" is going "B�RT De Sem"



So no feature found.



How can I solve this problem?










share|improve this question






























    0















    I am using vector layer with WFS protocol



    var adressVector = new OpenLayers.Layer.Vector("Adress", 
    strategies: [new OpenLayers.Strategy.BBOX()],
    protocol: new OpenLayers.Protocol.WFS(
    url: "http://localhost:8080/geoserver/wfs",
    featurePrefix:"compa",
    featureType: "adress_location",
    featureNS: "http://localhost:8080/location",
    srsName: "EPSG:4326",
    geometryName: "the_geom",
    version: "1.0.0"
    )
    );


    I want to get addresses with some filter and adding filters property fo vector layer:



    var adressVector = new OpenLayers.Layer.Vector("Adress", 
    strategies: [new OpenLayers.Strategy.BBOX()],
    protocol: new OpenLayers.Protocol.WFS(
    url: "http://localhost:8080/geoserver/wfs",
    featurePrefix:"compa",
    featureType: "adress_location",
    featureNS: "http://localhost:8080/location",
    srsName: "EPSG:4326",
    geometryName: "the_geom",
    version: "1.0.0",
    "filter": new OpenLayers.Filter.Logical(
    type: OpenLayers.Filter.Logical.OR,
    filters: [
    new OpenLayers.Filter.Comparison(
    "type": OpenLayers.Filter.Comparison.EQUAL_TO,
    "property": 'name',
    "value": "BÖRT De Sem"
    )
    ]
    )
    )
    );


    But this filter creates a WFS XML like this.



    <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
    <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
    <ogc:Or>
    <ogc:PropertyIsEqualTo matchCase="true">
    <ogc:PropertyName>name</ogc:PropertyName>
    <ogc:Literal>B�RT De Sem</ogc:Literal>
    </ogc:PropertyIsEqualTo>
    </ogc:Or>
    </ogc:Filter>
    </wfs:Query>
    </wfs:GetFeature>


    I mean my vaue property is ugly charectes.



    "BÖRT De Sem" is going "B�RT De Sem"



    So no feature found.



    How can I solve this problem?










    share|improve this question


























      0












      0








      0








      I am using vector layer with WFS protocol



      var adressVector = new OpenLayers.Layer.Vector("Adress", 
      strategies: [new OpenLayers.Strategy.BBOX()],
      protocol: new OpenLayers.Protocol.WFS(
      url: "http://localhost:8080/geoserver/wfs",
      featurePrefix:"compa",
      featureType: "adress_location",
      featureNS: "http://localhost:8080/location",
      srsName: "EPSG:4326",
      geometryName: "the_geom",
      version: "1.0.0"
      )
      );


      I want to get addresses with some filter and adding filters property fo vector layer:



      var adressVector = new OpenLayers.Layer.Vector("Adress", 
      strategies: [new OpenLayers.Strategy.BBOX()],
      protocol: new OpenLayers.Protocol.WFS(
      url: "http://localhost:8080/geoserver/wfs",
      featurePrefix:"compa",
      featureType: "adress_location",
      featureNS: "http://localhost:8080/location",
      srsName: "EPSG:4326",
      geometryName: "the_geom",
      version: "1.0.0",
      "filter": new OpenLayers.Filter.Logical(
      type: OpenLayers.Filter.Logical.OR,
      filters: [
      new OpenLayers.Filter.Comparison(
      "type": OpenLayers.Filter.Comparison.EQUAL_TO,
      "property": 'name',
      "value": "BÖRT De Sem"
      )
      ]
      )
      )
      );


      But this filter creates a WFS XML like this.



      <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
      <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
      <ogc:Or>
      <ogc:PropertyIsEqualTo matchCase="true">
      <ogc:PropertyName>name</ogc:PropertyName>
      <ogc:Literal>B�RT De Sem</ogc:Literal>
      </ogc:PropertyIsEqualTo>
      </ogc:Or>
      </ogc:Filter>
      </wfs:Query>
      </wfs:GetFeature>


      I mean my vaue property is ugly charectes.



      "BÖRT De Sem" is going "B�RT De Sem"



      So no feature found.



      How can I solve this problem?










      share|improve this question
















      I am using vector layer with WFS protocol



      var adressVector = new OpenLayers.Layer.Vector("Adress", 
      strategies: [new OpenLayers.Strategy.BBOX()],
      protocol: new OpenLayers.Protocol.WFS(
      url: "http://localhost:8080/geoserver/wfs",
      featurePrefix:"compa",
      featureType: "adress_location",
      featureNS: "http://localhost:8080/location",
      srsName: "EPSG:4326",
      geometryName: "the_geom",
      version: "1.0.0"
      )
      );


      I want to get addresses with some filter and adding filters property fo vector layer:



      var adressVector = new OpenLayers.Layer.Vector("Adress", 
      strategies: [new OpenLayers.Strategy.BBOX()],
      protocol: new OpenLayers.Protocol.WFS(
      url: "http://localhost:8080/geoserver/wfs",
      featurePrefix:"compa",
      featureType: "adress_location",
      featureNS: "http://localhost:8080/location",
      srsName: "EPSG:4326",
      geometryName: "the_geom",
      version: "1.0.0",
      "filter": new OpenLayers.Filter.Logical(
      type: OpenLayers.Filter.Logical.OR,
      filters: [
      new OpenLayers.Filter.Comparison(
      "type": OpenLayers.Filter.Comparison.EQUAL_TO,
      "property": 'name',
      "value": "BÖRT De Sem"
      )
      ]
      )
      )
      );


      But this filter creates a WFS XML like this.



      <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
      <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
      <ogc:Or>
      <ogc:PropertyIsEqualTo matchCase="true">
      <ogc:PropertyName>name</ogc:PropertyName>
      <ogc:Literal>B�RT De Sem</ogc:Literal>
      </ogc:PropertyIsEqualTo>
      </ogc:Or>
      </ogc:Filter>
      </wfs:Query>
      </wfs:GetFeature>


      I mean my vaue property is ugly charectes.



      "BÖRT De Sem" is going "B�RT De Sem"



      So no feature found.



      How can I solve this problem?







      openlayers-2 wfs feature-layer encoding






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 '17 at 20:30









      nmtoken

      8,12542866




      8,12542866










      asked Jul 8 '15 at 8:09









      bartelomabarteloma

      6861226




      6861226




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You could try



           "value": encodeURI("BÖRT De Sem")


          instead of



          "value": "BÖRT De Sem"





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "79"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f153644%2fopenlayers-filter-comparison-value-charecter-encoding%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You could try



             "value": encodeURI("BÖRT De Sem")


            instead of



            "value": "BÖRT De Sem"





            share|improve this answer



























              0














              You could try



               "value": encodeURI("BÖRT De Sem")


              instead of



              "value": "BÖRT De Sem"





              share|improve this answer

























                0












                0








                0







                You could try



                 "value": encodeURI("BÖRT De Sem")


                instead of



                "value": "BÖRT De Sem"





                share|improve this answer













                You could try



                 "value": encodeURI("BÖRT De Sem")


                instead of



                "value": "BÖRT De Sem"






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 10 '15 at 8:00









                Thomas BThomas B

                5,8901824




                5,8901824



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f153644%2fopenlayers-filter-comparison-value-charecter-encoding%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

                    Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given

                    QGIS export composer to PDF scale the map [closed] Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Print Composer QGIS 2.6, how to export image?QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tilesSave Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?Export QGIS Print Composer PDF with searchable text labelsQGIS Print Composer does not change from landscape to portrait orientation?How can I avoid map size and scale changes in print composer?Fuzzy PDF export in QGIS running on macSierra OSExport the legend into its 100% size using Print ComposerScale-dependent rendering in QGIS PDF output