The problem of garbled characters after code generation by Composer

The problem of garbled characters after code generation by Composer

Cursor has been upgraded to version 0.43.5. No obvious bugs have been found in this version so far, but the problem of garbled characters after code generation by Composer still remains unresolved.

Firstly, existing strings or Chinese characters will be converted into characters like “��”. This happens regardless of whether there is a requirement to modify this code or not.

Secondly, sometimes when using Composer to generate code, it will modify the code that is irrelevant to the question. For example, if I want to modify the code in Function 1, Composer will modify the code of Function 2 and Function 3 together. Sometimes, for the same lines of code generated by using Composer multiple times, existing strings or Chinese characters will all be converted into characters like “��”.

It is recommended that the official should fix this problem.


composer生成代码后乱码问题
cursor已升级到0.43.5版本,此版本目前没有发现明显的bug,但composer生成代码后乱码问题仍然没有解决
第一,会将已有字符串或中文字转换成��"这样的字符.无论是否有要求修改这段代码
第二,有时使用composer生成代码,会修改与提问无关的代码.例如我要修改函数1中的代码,composer会连接函数2,函数3的代码一起修改,有时会出现多次使用composer生成的代码相同的代码行都会将已有字符串或中文字转换成��"这样的字符.
建议官方修复这个问题

1 Like


如图

2 Likes