Does the cursor need to be encoded here ?