--- title: "setSendStringParametersAsUnicode Method (SQLServerDataSource) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: "sql" ms.prod_service: "drivers" ms.service: "" ms.component: "jdbc" ms.reviewer: "" ms.suite: "sql" ms.technology: - "drivers" ms.tgt_pltfrm: "" ms.topic: "article" apiname: - "SQLServerDataSource.setSendStringParametersAsUnicode" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 49198d63-76cb-4843-8d04-e49b1fbb6916 caps.latest.revision: 17 author: "MightyPen" ms.author: "genemi" manager: craigg ms.workload: "Inactive" --- # setSendStringParametersAsUnicode Method (SQLServerDataSource) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets a **boolean** value that indicates if sending string parameters to the server in UNICODE format is enabled. ## Syntax ``` public void setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode) ``` #### Parameters *sendStringParametersAsUnicode* **true** if string parameters are sent to the server in UNICODE format. Otherwise, **false**. ## Remarks If the sendStringParametersAsUnicode property is set to **true**, which is the default value, string parameters are sent to the server in UNICODE format. If sendStringParametersAsUnicode is set to **false** string parameters are sent to the server in an ASCII/MBCS format, not in UNICODE. If sendStringParametersAsUnicode is not set, [getSendStringParametersAsUnicode](../../../connect/jdbc/reference/getsendstringparametersasunicode-method-sqlserverdatasource.md) returns the default value of **true**. For more information about the sendStringParametersAsUnicode connection property, see [Setting the Connection Properties](../../../connect/jdbc/setting-the-connection-properties.md). ## See Also [SQLServerDataSource Members](../../../connect/jdbc/reference/sqlserverdatasource-members.md) [SQLServerDataSource Class](../../../connect/jdbc/reference/sqlserverdatasource-class.md)