We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbabfb4 commit 2ca0db6Copy full SHA for 2ca0db6
src/Peachpie.Library/iconv.cs
@@ -15,6 +15,20 @@ namespace Pchp.Library
15
[PhpExtension("iconv", Registrator = typeof(PhpIconv.Registrator))]
16
public static class PhpIconv
17
{
18
+ /// <summary>
19
+ /// wjw add 2024-04-08 增加一个静态构造,汉字编码支持 18行
20
+ /// </summary>
21
+ static PhpIconv()
22
+ {
23
+ try
24
25
+ Encoding.GetEncoding("GBK");
26
+ }
27
+ catch (Exception)
28
29
+ Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
30
31
32
#region IconvConfig, Options
33
34
sealed class IconvConfig : IPhpConfiguration
0 commit comments