File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
backends/advanced/scripts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def create_plugin(plugin_name: str, force: bool = False):
7272
7373 init_file = plugin_dir / '__init__.py'
7474 print (f"📝 Creating { init_file } " )
75- init_file .write_text (init_content )
75+ init_file .write_text (init_content , encoding = "utf-8" )
7676
7777 # Create plugin.py with template
7878 plugin_content = f'''"""
@@ -273,7 +273,7 @@ async def _my_helper_method(self, data: Any) -> Any:
273273
274274 plugin_file = plugin_dir / 'plugin.py'
275275 print (f"📝 Creating { plugin_file } " )
276- plugin_file .write_text (plugin_content )
276+ plugin_file .write_text (plugin_content , encoding = "utf-8" )
277277
278278 # Create README.md
279279 readme_content = f'''# { class_name }
@@ -367,7 +367,7 @@ async def _my_helper_method(self, data: Any) -> Any:
367367
368368 readme_file = plugin_dir / 'README.md'
369369 print (f"📝 Creating { readme_file } " )
370- readme_file .write_text (readme_content )
370+ readme_file .write_text (readme_content , encoding = "utf-8" )
371371
372372 # Print success message and next steps
373373 print (f"\n ✅ Plugin '{ plugin_name } ' created successfully!\n " )
You can’t perform that action at this time.
0 commit comments