           else 'PUT'
         url: @_res.genUrl params, false
         data: JSON.stringify @_a
+        headers:
+          'Content-Type': 'application/json;charset=UTF-8'
         (status,response,isSuccess)=>
           if isSuccess
             @_res.parseModelResponse response, @

        return
    inst

  Resource::query = (params,success,error)->
    inst = new @Collection @
    http
      method: 'GET'
      url: @genUrl params, false

    return

  Resource::parseCollectionResponse = (response,collection)->
    collection.remove collection.toArray()
    jsonObjs = JSON.parse response
    collection.add (@transform obj for obj in jsonObjs)
    return
