Community
Participate
Working Groups
created a custom topic which has full width characters ex: test/:/test1 when i try to publish it to Mosquitto broker the client goes into wait state and does not return the control back to java and the topic is not published to the broker. code snippet: MqttConnectOptions connectionOptions= new MqttConnectOptions(); connectionOptions.setAutomaticReconnect(true); connectionOptions.setCleanSession(true); MqttClient mqttClient = new MqttClient("tcp://localhost:1883", "someclient", new MemoryPersistence()); mqttClient.connect(connectionOptions); mqttClient.publish("test/:/test1", message); here message is of type MqttMessage. i have tried encoding the topic before doing mqttClient.publish then the topic is successfully published to the broker. but the problem is if i encode it using UTF-8 encoding then the topic looks as shown below test%2F%EF%BC%9A%2Ftest1 this behavior is observed while using full width characters like full width colon(:), full width semi-colon(;), etc...