Internationalization and localization tools


Locale-Sensitive JavaScript NodeJS Method

socket.end([data][, encoding]);
socket.send(msg, [offset, length,] port, address[, callback]);
socket.write(data[, encoding][, callback]);

socket.setEncoding([encoding]);

Internationalization (I18n) Method Overview

socket.end, socket.send, and socket.write are all used to communicate data over sockets.

socket.setEncoding is used to set the given sockets encoding.

Additional details on these methods can be found below:

I18n Issues

All of the above methods take an optional encoding. The encoding should be double checked to ensure that it matches the server settings and application requirements.

Suggested Replacement

Double check to confirm that the appropriate encoding is used. If necessary, refactor the application to use an appropriate encoding.

Globalyzer will detect this method and report it as an i18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.



Locale-Sensitive JavaScript Methods

 

Lingoport internationalization and localization services and software